fix(ui): excise most zIndexs

our stacking contexts are accurate, `zIndex` isn't needed
This commit is contained in:
psychedelicious 2023-05-12 18:50:54 +10:00
parent 35e0863bdb
commit 032aa1d59c
4 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,6 @@ const ProgressBar = () => {
aria-label={t('accessibility.invokeProgressBar')} aria-label={t('accessibility.invokeProgressBar')}
isIndeterminate={isProcessing && !currentStatusHasSteps} isIndeterminate={isProcessing && !currentStatusHasSteps}
height={PROGRESS_BAR_THICKNESS} height={PROGRESS_BAR_THICKNESS}
zIndex={99}
/> />
); );
}; };

View File

@ -44,7 +44,6 @@ const FloatingGalleryButton = () => {
pos: 'absolute', pos: 'absolute',
top: '50%', top: '50%',
transform: 'translate(0, -50%)', transform: 'translate(0, -50%)',
zIndex: 31,
p: 0, p: 0,
insetInlineEnd: 0, insetInlineEnd: 0,
px: 3, px: 3,

View File

@ -73,7 +73,6 @@ const FloatingParametersPanelButtons = () => {
<Flex <Flex
pos="absolute" pos="absolute"
transform="translate(0, -50%)" transform="translate(0, -50%)"
zIndex={20}
minW={8} minW={8}
top="50%" top="50%"
insetInlineStart="4.5rem" insetInlineStart="4.5rem"

View File

@ -142,7 +142,7 @@ const ResizableDrawer = ({
direction={slideDirection} direction={slideDirection}
in={isOpen} in={isOpen}
motionProps={{ initial: false }} motionProps={{ initial: false }}
style={{ zIndex: 99, width: 'full' }} style={{ width: 'full' }}
> >
<Box <Box
ref={outsideClickRef} ref={outsideClickRef}