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

[Fab] Add support for CSS variables #32564

Merged
merged 2 commits into from
May 4, 2022
Merged

Conversation

alisasanib
Copy link
Contributor

@alisasanib alisasanib commented May 2, 2022

@alisasanib alisasanib changed the title Fab css variables [Fab] add support for CSS variables May 2, 2022
@mui-bot
Copy link

mui-bot commented May 2, 2022

Details of bundle changes

Generated by 🚫 dangerJS against a5841a3

@danilo-leal danilo-leal added component: Fab The React component. new feature New feature or request labels May 3, 2022
Comment on lines +58 to +59
color: theme.vars
? theme.vars.palette.text.primary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me because getContrastText(grey[300]) 99.99% returns text.primary. cc @mnajdova

Copy link
Member

@siriwatknp siriwatknp May 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leaves 0.01% for the super edge case where custom grey[300] has high contrast.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good 👍 We will see if people complain (I don't expect it will happen :))

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.

👍 Great work!

@alisasanib alisasanib changed the title [Fab] add support for CSS variables [Fab] Add support for CSS variables May 4, 2022
@mnajdova mnajdova merged commit acd0e6a into mui:master May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Fab The React component. new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants