- hi
-
-`;
-
-exports[`Flex.Item respects alignSelf 1`] = `
-.c0 {
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center;
-}
-
-
-`;
diff --git a/src/__tests__/__snapshots__/Grid.js.snap b/src/__tests__/__snapshots__/Grid.js.snap
index 5bd262c9edb..064c5f676aa 100644
--- a/src/__tests__/__snapshots__/Grid.js.snap
+++ b/src/__tests__/__snapshots__/Grid.js.snap
@@ -2,6 +2,7 @@
exports[`Grid respects gridArea 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-area: sidebar;
}
@@ -14,6 +15,7 @@ exports[`Grid respects gridArea 1`] = `
exports[`Grid respects gridAutoColumns 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-auto-columns: 1fr;
}
@@ -26,6 +28,7 @@ exports[`Grid respects gridAutoColumns 1`] = `
exports[`Grid respects gridAutoFlow 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-auto-flow: row;
}
@@ -38,6 +41,7 @@ exports[`Grid respects gridAutoFlow 1`] = `
exports[`Grid respects gridAutoRows 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-auto-rows: 1fr;
}
@@ -50,6 +54,7 @@ exports[`Grid respects gridAutoRows 1`] = `
exports[`Grid respects gridColumn 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-column: 1 / 2;
}
@@ -62,6 +67,7 @@ exports[`Grid respects gridColumn 1`] = `
exports[`Grid respects gridColumnGap 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-column-gap: 8px;
}
@@ -74,6 +80,7 @@ exports[`Grid respects gridColumnGap 1`] = `
exports[`Grid respects gridGap 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-gap: 4px;
}
@@ -86,6 +93,7 @@ exports[`Grid respects gridGap 1`] = `
exports[`Grid respects gridRow 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-row: 1 / 2;
}
@@ -98,6 +106,7 @@ exports[`Grid respects gridRow 1`] = `
exports[`Grid respects gridRowGap 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-row-gap: 8px;
}
@@ -110,6 +119,7 @@ exports[`Grid respects gridRowGap 1`] = `
exports[`Grid respects gridTemplateAreas 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-template-areas: sidebar main;
}
@@ -122,6 +132,7 @@ exports[`Grid respects gridTemplateAreas 1`] = `
exports[`Grid respects gridTemplateColumns 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-template-columns: 200px 1fr;
}
@@ -134,6 +145,7 @@ exports[`Grid respects gridTemplateColumns 1`] = `
exports[`Grid respects gridTemplateRows 1`] = `
.c0 {
+ display: grid;
display: grid;
grid-template-rows: 200px 1fr;
}
@@ -147,6 +159,13 @@ exports[`Grid respects gridTemplateRows 1`] = `
exports[`Grid respects responsive display 1`] = `
.c0 {
display: grid;
+ display: grid;
+}
+
+@media screen and (min-width:544px) {
+ .c0 {
+ display: inline-grid;
+ }
}
@media screen and (min-width:544px) {
diff --git a/src/__tests__/__snapshots__/PointerBox.js.snap b/src/__tests__/__snapshots__/PointerBox.js.snap
index c21a3131476..5f5e223ed14 100644
--- a/src/__tests__/__snapshots__/PointerBox.js.snap
+++ b/src/__tests__/__snapshots__/PointerBox.js.snap
@@ -3,7 +3,8 @@
exports[`PointerBox passes the "bg" prop to both
and 1`] = `
.c1 {
background-color: #d73a49;
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
}
@@ -43,7 +44,7 @@ exports[`PointerBox passes the "bg" prop to both and 1`] = `
d="M-8,0L0,8L8,0"
fill="none"
stroke="#e1e4e8"
- strokeWidth={1}
+ strokeWidth="1px"
/>
@@ -54,7 +55,8 @@ exports[`PointerBox passes the "bg" prop to both and 1`] = `
exports[`PointerBox passes the "borderColor" prop to both and 1`] = `
.c1 {
border-color: #d73a49;
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-radius: 6px;
}
@@ -93,7 +95,7 @@ exports[`PointerBox passes the "borderColor" prop to both and
@@ -103,7 +105,8 @@ exports[`PointerBox passes the "borderColor" prop to both and in with relative positioning 1`] = `
.c1 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
}
@@ -143,7 +146,7 @@ exports[`PointerBox renders a in with relative positioning 1
d="M-8,0L0,8L8,0"
fill="none"
stroke="#e1e4e8"
- strokeWidth={1}
+ strokeWidth="1px"
/>
diff --git a/src/__tests__/__snapshots__/Popover.js.snap b/src/__tests__/__snapshots__/Popover.js.snap
index dfa98493cf5..197c744d023 100644
--- a/src/__tests__/__snapshots__/Popover.js.snap
+++ b/src/__tests__/__snapshots__/Popover.js.snap
@@ -8,7 +8,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of b
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -216,7 +217,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of b
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -424,7 +426,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of b
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -632,7 +635,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of l
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -840,7 +844,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of l
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -1048,7 +1053,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of l
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -1256,7 +1262,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of r
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -1464,7 +1471,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of r
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -1672,7 +1680,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of r
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -1880,7 +1889,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of t
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -2088,7 +2098,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of t
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -2296,7 +2307,8 @@ exports[`Popover and Popover.Content renders correctly for a caret position of t
}
.c2 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
@@ -2665,7 +2677,8 @@ exports[`Popover and Popover.Content renders with default props 1`] = `
exports[`Popover and Popover.Content renders with default props 2`] = `
.c0 {
- border: 1px solid;
+ border-width: 1px;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
position: relative;
diff --git a/src/__tests__/__snapshots__/SideNav.js.snap b/src/__tests__/__snapshots__/SideNav.js.snap
index ccd14ec95f5..3f4b424763e 100644
--- a/src/__tests__/__snapshots__/SideNav.js.snap
+++ b/src/__tests__/__snapshots__/SideNav.js.snap
@@ -2,7 +2,8 @@
exports[`SideNav and SideNav.Link renders with default props 1`] = `
.c0 {
- border: none;
+ border-width: 0;
+ border-style: solid;
border-color: #e1e4e8;
border-radius: 6px;
}
diff --git a/src/__tests__/__snapshots__/Timeline.js.snap b/src/__tests__/__snapshots__/Timeline.js.snap
index adccf37419a..f2177ffd9a8 100644
--- a/src/__tests__/__snapshots__/Timeline.js.snap
+++ b/src/__tests__/__snapshots__/Timeline.js.snap
@@ -2,6 +2,10 @@
exports[`Timeline renders 1`] = `
.c0 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -19,6 +23,10 @@ exports[`Timeline renders 1`] = `
exports[`Timeline renders with clipSidebar prop 1`] = `
.c0 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -49,17 +57,14 @@ exports[`Timeline.Badge renders 1`] = `
}
.c1 {
- overflow: hidden;
- width: 32px;
- height: 32px;
+ color: #444d56;
+ background-color: #e1e4e8;
+ margin-right: 8px;
+ margin-left: -15px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
- margin-right: 8px;
- margin-left: -15px;
- color: #444d56;
- background-color: #e1e4e8;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
@@ -71,6 +76,13 @@ exports[`Timeline.Badge renders 1`] = `
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
+ overflow: hidden;
+ width: 32px;
+ height: 32px;
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
border-radius: 50%;
border: 2px solid #fff;
}
@@ -91,6 +103,10 @@ exports[`Timeline.Badge renders 1`] = `
exports[`Timeline.Item renders 1`] = `
.c0 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
@@ -123,6 +139,10 @@ exports[`Timeline.Item renders 1`] = `
exports[`Timeline.Item renders with condensed prop 1`] = `
.c0 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
diff --git a/src/theme.js b/src/theme.js
index e0542dfa958..f381340caf6 100644
--- a/src/theme.js
+++ b/src/theme.js
@@ -1,5 +1,6 @@
import {black, white, gray, blue, green, orange, purple, red, yellow} from 'primer-colors'
import {lineHeights} from 'primer-typography'
+import {lighten, rgba, desaturate} from 'polished'
// General
const colors = {
@@ -28,10 +29,23 @@ const colors = {
success: green[5],
unknown: gray[4]
},
+
border: {
- grayLight: '#eaecef',
+ blackFade: rgba(black, 0.15),
+ blue: blue[5],
+ blueLight: blue[2],
+ grayLight: lighten(0.03, gray[2]),
gray: gray[2],
- grayDark: '#d1d5da'
+ grayDark: gray[3],
+ grayDarker: gray[7],
+ green: green[4],
+ greenLight: desaturate(0.4, green[3]),
+ purple: purple[5],
+ red: red[5],
+ redLight: desaturate(0.6, red[3]),
+ white,
+ whiteFade: rgba(white, 0.15),
+ yellow: desaturate(0.6, yellow[3])
},
counter: {
bg: 'rgba(27, 31, 35, 0.08)'
@@ -77,7 +91,7 @@ const fontWeights = {
bold: 600
}
-const borders = [0, '1px solid']
+const borderWidths = [0, '1px']
const radii = ['0', '3px', '6px', '100px']
@@ -242,7 +256,7 @@ const pagination = {
const theme = {
// General
- borders,
+ borderWidths,
breakpoints,
colors,
fonts,
diff --git a/yarn.lock b/yarn.lock
index cec80e1527a..3e85481d5e0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1706,6 +1706,13 @@
dependencies:
regenerator-runtime "^0.13.2"
+"@babel/runtime@^7.8.7":
+ version "7.9.2"
+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06"
+ integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
"@babel/template@^7.4.0", "@babel/template@^7.7.4":
version "7.7.4"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.4.tgz#428a7d9eecffe27deac0a98e23bf8e3675d2a77b"
@@ -8516,6 +8523,13 @@ pn@^1.1.0:
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==
+polished@3.5.2:
+ version "3.5.2"
+ resolved "https://registry.yarnpkg.com/polished/-/polished-3.5.2.tgz#ca132b8cd68f7ffa95ae9d423f03e7a14fda1062"
+ integrity sha512-vWoRDg3gY5RQBtUfcj9MRN10VCIf4EkdUikGxyXItg2Hnwk+eIVtdBiLajN0ldFeT3Vq4r/QNbjrQdhqBKrTug==
+ dependencies:
+ "@babel/runtime" "^7.8.7"
+
portfinder@^1.0.25:
version "1.0.25"
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.25.tgz#254fd337ffba869f4b9d37edc298059cb4d35eca"
@@ -9184,6 +9198,11 @@ regenerator-runtime@^0.13.2:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==
+regenerator-runtime@^0.13.4:
+ version "0.13.5"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
+ integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==
+
regenerator-transform@^0.14.0:
version "0.14.1"
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb"