-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Avatar] Add support for CSS variables #32499
Conversation
theme.palette.mode === 'light' | ||
? (theme.vars || theme).palette.grey[400] | ||
: (theme.vars || theme).palette.grey[600], |
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.
Switching between tokens will cause a flicker for SSR application. We have to come up with a new variable in the theme palette.
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.
@siriwatknp How or where do we do this?
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.
We have concluded on #32049 (comment)
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.
👍 added a variable for the Avatar to prevent dark mode flicker.
Preview: https://deploy-preview-32499--material-ui.netlify.app/experiments/material-ui/css-variables/
Preview: https://deploy-preview-32499--material-ui.netlify.app/experiments/material-ui/css-variables-custom-theme/
One of #32049