-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Access alert background colors in sx function. #45499
Comments
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @circularchaos How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Reopen, I think the available tokens have to be documented. |
Thanks @siriwatknp, doesn't it also belong in the palette theme function object too? e.g.
|
No it does not. The background of the alert is calculated using When css variables feature is enabled, the calculated value is attached to |
Related page
https://mui.com/material-ui/react-alert/
Kind of issue
Missing information
Issue description
The MUI alert component uses a very light background for all severities. These light colors are not accessible when using the
sx
property for custom components e.g.background: (theme) => theme.palette.
and are also not defined in the Palette docs: https://mui.com/material-ui/customization/palette/.Context
No response
Search keywords: alert colors background
The text was updated successfully, but these errors were encountered: