diff --git a/components/grid/__tests__/__snapshots__/index.test.tsx.snap b/components/grid/__tests__/__snapshots__/index.test.tsx.snap index c84060e..7ea9e6e 100644 --- a/components/grid/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/grid/__tests__/__snapshots__/index.test.tsx.snap @@ -25,7 +25,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 4.166666666666667%; flex-basis: 4.166666666666667%; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -33,7 +33,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 4.166666666666667%; flex-basis: 4.166666666666667%; - display: unset; + display: inherit; } } @@ -42,7 +42,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 8.333333333333334%; flex-basis: 8.333333333333334%; - display: unset; + display: inherit; } } @@ -51,7 +51,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 12.5%; flex-basis: 12.5%; - display: unset; + display: inherit; } } @@ -60,7 +60,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 16.666666666666668%; flex-basis: 16.666666666666668%; - display: unset; + display: inherit; } } @@ -69,7 +69,7 @@ exports[`Grid all breakpoint values should be supported 1`] = ` flex-grow: 0; max-width: 20.833333333333336%; flex-basis: 20.833333333333336%; - display: unset; + display: inherit; } } " @@ -171,7 +171,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -179,7 +179,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -188,7 +188,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -197,7 +197,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -206,7 +206,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -215,7 +215,7 @@ exports[`Grid css value should be passed through 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } " @@ -317,7 +317,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -325,7 +325,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -334,7 +334,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -343,7 +343,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -352,7 +352,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -361,7 +361,7 @@ exports[`Grid decimal spacing should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } " @@ -463,7 +463,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -471,7 +471,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -480,7 +480,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -489,7 +489,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -498,7 +498,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -507,7 +507,7 @@ exports[`Grid nested components should be supported 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } }
test
test
test
,
,
," @@ -1035,7 +1035,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -1043,7 +1043,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1052,7 +1052,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1061,7 +1061,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1070,7 +1070,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1079,7 +1079,7 @@ exports[`Grid should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } }
test
" @@ -1252,7 +1252,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 0; max-width: 100%; flex-basis: 100%; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -1260,7 +1260,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 0; max-width: 100%; flex-basis: 100%; - display: unset; + display: inherit; } } @@ -1269,7 +1269,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1278,7 +1278,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1287,7 +1287,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -1296,7 +1296,7 @@ exports[`Grid should work correctly when size exceeds 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } }
test
" diff --git a/components/grid/basic-item.tsx b/components/grid/basic-item.tsx index 5807193..8e53034 100644 --- a/components/grid/basic-item.tsx +++ b/components/grid/basic-item.tsx @@ -35,7 +35,7 @@ type ItemLayoutValue = { display: string } const getItemLayout = (val: BreakpointsValue): ItemLayoutValue => { - const display = val === 0 ? 'display: none;' : 'display: unset;' + const display = val === 0 ? 'display: none;' : 'display: inherit;' if (typeof val === 'number') { const width = (100 / 24) * val const ratio = width > 100 ? '100%' : width < 0 ? '0' : `${width}%` diff --git a/components/select/__tests__/__snapshots__/multiple.test.tsx.snap b/components/select/__tests__/__snapshots__/multiple.test.tsx.snap index 728c00e..e5db993 100644 --- a/components/select/__tests__/__snapshots__/multiple.test.tsx.snap +++ b/components/select/__tests__/__snapshots__/multiple.test.tsx.snap @@ -33,7 +33,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } @media only screen and (max-width: 650px) { @@ -41,7 +41,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -50,7 +50,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -59,7 +59,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -68,7 +68,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } } @@ -77,7 +77,7 @@ exports[`Select Multiple should render correctly 1`] = ` flex-grow: 1; max-width: 100%; flex-basis: 0; - display: unset; + display: inherit; } }