Skip to content

Commit

Permalink
remove css visibility property
Browse files Browse the repository at this point in the history
  • Loading branch information
sahdoon committed Sep 5, 2023
1 parent 77edef3 commit 79d2ad2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 40 deletions.
9 changes: 0 additions & 9 deletions .vscode/extensions.json

This file was deleted.

22 changes: 0 additions & 22 deletions .vscode/launch.json

This file was deleted.

12 changes: 3 additions & 9 deletions packages/mui-material/src/Drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ const DrawerRoot = styled(Modal, {
name: 'MuiDrawer',
slot: 'Root',
overridesResolver,
})(({ theme, ownerState }) => ({
})(({ theme }) => ({
zIndex: (theme.vars || theme).zIndex.drawer,
...(!ownerState.open && {
visibility: 'hidden',
}),
}));

const DrawerDockedRoot = styled('div', {
Expand All @@ -57,12 +54,9 @@ 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 79d2ad2

Please sign in to comment.