Skip to content

[Avatar] Add support for CSS variables#32499

Merged
siriwatknp merged 4 commits intomui:masterfrom
vicasas:avatar-css-vars
Jun 17, 2022
Merged

[Avatar] Add support for CSS variables#32499
siriwatknp merged 4 commits intomui:masterfrom
vicasas:avatar-css-vars

Conversation

@vicasas
Copy link
Member

@vicasas vicasas commented Apr 29, 2022

@vicasas vicasas added type: new feature Expand the scope of the product to solve a new problem. scope: avatar Changes related to the avatar. 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

scope: avatar Changes related to the avatar. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants