Skip to content

Commit

Permalink
Issue 29997
Browse files Browse the repository at this point in the history
- Add potential fix
- Look up how to make a PR
- Trigger pipeline to verify fix
- Check if pipeline can be run locally
  • Loading branch information
sahdoon committed Sep 2, 2023
1 parent b2c4a86 commit 0dfc5c9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/mui-material/src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ const DrawerRoot = styled(Modal, {
name: 'MuiDrawer',
slot: 'Root',
overridesResolver,
})(({ theme }) => ({
})(({ theme, ownerState }) => ({
zIndex: (theme.vars || theme).zIndex.drawer,
...(!ownerState.open && {
visibility: 'hidden',
}),
}));

const DrawerDockedRoot = styled('div', {
Expand All @@ -54,9 +57,12 @@ const DrawerDockedRoot = styled('div', {
slot: 'Docked',
skipVariantsResolver: false,
overridesResolver,
})({
})(({ ownerState }) => ({
flex: '0 0 auto',
});
...(!ownerState.open && {
visibility: 'hidden',
}),
}));

const DrawerPaper = styled(Paper, {
name: 'MuiDrawer',
Expand Down

0 comments on commit 0dfc5c9

Please sign in to comment.