We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I created a custom theme with a override style for MuiListItem. It's not working anymore after changed to Material-ui V5.
MuiListItem: { styleOverrides: { root: { color: primary, paddingTop: '12px', paddingBottom: '12px', '&$selected': { color: theme === 'dark' ? '#e3f2fd' : '#3366ff', backgroundColor: theme !== 'dark' ? '#e3f2fd' : '#5D4CA5', '&:hover': { backgroundColor: theme !== 'dark' ? '#e3f2fd' : '#5D4CA5', }, '& .MuiListItemIcon-root': { color: theme === 'dark' ? '#e3f2fd' : '#3366ff', }, }, '&:hover': { color: theme === 'dark' ? '#e3f2fd' : '#3366ff', '& .MuiListItemIcon-root': { color: theme === 'dark' ? '#e3f2fd' : '#3366ff', }, }, }, } }
When the List item clicked(selected), it doesn't has color and background color above.
The selected style should be applied, and it works before, on V4.
What I need to change on this case, I read the migrate guide on next.material-ui.com but it doesn't help. Thanks
The text was updated successfully, but these errors were encountered:
The '&$selected' option need to change to '&.Mui-selected'. Anyway, thanks for your hard work.
Sorry, something went wrong.
mnajdova
No branches or pull requests
Hi, I created a custom theme with a override style for MuiListItem. It's not working anymore after changed to Material-ui V5.
Current Behavior:
When the List item clicked(selected), it doesn't has color and background color above.
Expected Behavior:
The selected style should be applied, and it works before, on V4.
What I need to change on this case, I read the migrate guide on next.material-ui.com but it doesn't help.
Thanks
The text was updated successfully, but these errors were encountered: