Drawer/Pane: fix data-closed

This commit is contained in:
Enrico Ros
2025-06-15 17:14:32 -07:00
parent ada9fb10e8
commit eec61adad1
@@ -22,8 +22,8 @@ const DesktopPanelFixRoot = styled(Box)({
// Base state
zIndex: themeZIndexDesktopPanel,
'&:not([data-open="true"])': {
'&[data-closed="true"]': {
contain: 'strict',
pointerEvents: 'none',
},
@@ -62,7 +62,7 @@ const DesktopPanelTranslatingSheet = styled(Sheet)(({ theme }) => ({
willChange: 'transform', // optimize for transform animations
// Closed state via data attribute
'&:not([data-open="true"])': {
'&[data-closed="true"]': {
transform: 'translateX(100%)',
},