-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs][Menu] Fix dark mode styling of grouped header demo #46317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Netlify deploy previewhttps://deploy-preview-46317--material-ui.netlify.app/ Bundle size report@mui/material parsed: 0B(0.00%) gzip: 0B(0.00%) Show details for 100 more bundles (86 more not shown)@mui/lab/AdapterDateFns parsed: 0B(0.00%) gzip: 0B(0.00%) |
@@ -33,13 +33,32 @@ export default function GroupedMenu() { | |||
slotProps={{ | |||
list: { | |||
'aria-labelledby': 'basic-button', | |||
sx: { | |||
py: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...theme.applyStyles('dark', { | ||
backgroundColor: theme.palette.grey[900], | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...theme.applyStyles('dark', { | |
backgroundColor: theme.palette.grey[900], | |
}), | |
backgroundImage: 'var(--Paper-overlay)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use backgroundImage: var(--Paper-overlay)
is better in this case to mimic the background of the list.
Check https://mui-org.slack.com/archives/C061V6JNZ9Q/p1749628354178369?thread_ts=1749628354.178369&cid=C061V6JNZ9Q for more context
preview : https://deploy-preview-46317--material-ui.netlify.app/material-ui/react-menu/#grouped-menu
Before:
After: