-
-
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
[material-ui] Remove enableColorScheme
prop from CssBaseline
#42695
Comments
The prop was added to avoid breaking changes, as far as I remember. This issue looks like point 4 of #38507 but where we also remove the prop. |
@oliviertassinari thank you for linking the issue and specifying the point 4. Would you like to reword the 4th point there, so it says removal, instead of setting the value to
|
I think we can remove it before the stable release of v6. It's a breaking change but I think |
enableColorScheme
prop from CssBaselineenableColorScheme
prop from CssBaseline
I'll try completing this. |
There doesnt seem to be much documentation on actually removing props -- after starting this change I realized this isn't really just a code change and more may be needed.
This issue might be "fixed" faster if we just default the enableColorScheme to true and deprecate the prop? |
@DiegoAndai I have 3 options here:
The difference between 1 and 2 is that the latter follow our convention for using boolean flags. Both are considered breaking changes. Should we do it or should we postpone to v7? |
@siriwatknp I think we should move this request to be included/considered in #38507, and close this one as duplicate as @o-alexandrov suggested here. This would effectively postpone this to v7 so we can have enough time to rework |
I've moved this request to point 4 in #38507. Closing as duplicate. |
What's the problem?
There is an unused prop
enableColorScheme
in CssBaseline which gives an option to choose something that does not make any sense.From #42640 (comment)
The existence of
enableColorScheme
led to the introduction of an extra hanging span HTML element.What are the requirements?
Remove
enableColorScheme
propWhat are our options?
In Material UI v7+, you might consider to remove the
enableColorScheme
prop.Search keywords: enableColorScheme, CssBaseline
The text was updated successfully, but these errors were encountered: