Commit dadc9973 authored by Jack Short's avatar Jack Short Committed by GitHub

chore: updating sprinkles z indices (#4641)

chore: updating sprinkles zindices
parent b90d6b5a
...@@ -35,7 +35,6 @@ export const bannerOverlay = style([ ...@@ -35,7 +35,6 @@ export const bannerOverlay = style([
}, },
sprinkles({ sprinkles({
position: 'absolute', position: 'absolute',
zIndex: '0',
width: 'full', width: 'full',
backgroundColor: 'grey900', backgroundColor: 'grey900',
left: '0', left: '0',
...@@ -140,7 +139,6 @@ export const valuePropOverlay = style([ ...@@ -140,7 +139,6 @@ export const valuePropOverlay = style([
}, },
sprinkles({ sprinkles({
position: 'absolute', position: 'absolute',
zIndex: '0',
width: 'full', width: 'full',
backgroundColor: 'grey900', backgroundColor: 'grey900',
left: '0', left: '0',
......
...@@ -128,6 +128,21 @@ const spacing = { ...@@ -128,6 +128,21 @@ const spacing = {
unset: 'unset', unset: 'unset',
} }
const zIndices = {
auto: 'auto',
'1': '1',
'2': '2',
'3': '3',
dropdown: '1000',
sticky: '1020',
fixed: '1030',
modalBackdrop: '1040',
offcanvas: '1050',
modal: '1060',
popover: '1070',
tooltip: '1080',
}
export const vars = createGlobalTheme(':root', { export const vars = createGlobalTheme(':root', {
color: { color: {
...themeVars.colors, ...themeVars.colors,
...@@ -296,7 +311,7 @@ const layoutStyles = defineProperties({ ...@@ -296,7 +311,7 @@ const layoutStyles = defineProperties({
right: spacing, right: spacing,
top: spacing, top: spacing,
margin: spacing, margin: spacing,
zIndex: ['auto', '0', '1', '2', '3'], zIndex: zIndices,
gap: spacing, gap: spacing,
flexShrink: spacing, flexShrink: spacing,
flex: ['1', '2', '3'], flex: ['1', '2', '3'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment