-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Fix createTheme
with just color schemes
#43518
[material-ui] Fix createTheme
with just color schemes
#43518
Conversation
Netlify deploy previewhttps://deploy-preview-43518--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
theme.defaultColorScheme = defaultColorSchemeInput; | ||
theme.colorSchemes = colorSchemesInput as Record<string, ColorSystem>; | ||
|
||
if (theme.palette.mode === 'light') { | ||
theme.colorSchemes.light = { palette: theme.palette } as ColorSystem; | ||
theme.colorSchemes.light = { | ||
...(colorSchemesInput.light !== true && colorSchemesInput.light), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this covered by line 100 above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this line, the other fields that are not palette
will be overridden because of the reassigning theme.colorSchemes.light
.
Co-authored-by: Diego Andai <diego@mui.com> Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
@siriwatknp Thank you for addressing the issue. Could you please let me know when we can expect the patch version to be released with this fix? |
@ksn5 this should be available in the next patch version, |
closes #43508, closes #43533