-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[mui-system] Fix darken() function #40050
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
base: v5.x
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-40050--material-ui.netlify.app/ @material-ui/core: parsed: +0.09% , gzip: +0.13% Bundle size reportDetails of bundle changes (Toolpad) |
|
@siriwatknp Can you review this? To me it seems like a breaking change for primary and secondary dark colors. |
|
To me, this fix is a breaking change that should be considered in v7. What do you think @DiegoAndai ? |
|
Thanks, @arronhunt, for the contribution. I agree with @siriwatknp and @ZeeshanTamboli. This would be perceived as a breaking change. v7, which is expected to bring design improvements, is the best time for this fix. |
Resolves #34136 by using the correct algorithm for darkening colors that will produce consistent results regardless of color format. Previously, a color darkened by a coefficient would produce different results if the color was an rgb color vs. hsl color.
Another natural side effect is that default colors will be more vibrant.