Skip to content
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

Merged
merged 4 commits into from
Jun 17, 2022
Merged

Conversation

@vicasas vicasas added new feature New feature or request component: avatar This is the name of the generic UI component, not the React module! labels Apr 29, 2022
@vicasas vicasas requested review from mnajdova and siriwatknp April 29, 2022 00:18
@mui-bot
Copy link

mui-bot commented Apr 29, 2022

Details of bundle changes

Generated by 🚫 dangerJS against 73f07c2

Comment on lines 57 to 59
theme.palette.mode === 'light'
? (theme.vars || theme).palette.grey[400]
: (theme.vars || theme).palette.grey[600],
Copy link
Member

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.

Copy link
Member Author

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?

Copy link
Member

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)

@mnajdova mnajdova changed the title [Avatar] Add support CSS variables [Avatar] Add support for CSS variables Apr 29, 2022
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 3, 2022
@siriwatknp siriwatknp added the on hold There is a blocker, we need to wait label May 5, 2022
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 17, 2022
Copy link
Member

@siriwatknp siriwatknp left a 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.

@siriwatknp siriwatknp merged commit b9cfab2 into mui:master Jun 17, 2022
@siriwatknp siriwatknp removed the on hold There is a blocker, we need to wait label Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: avatar This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants