You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when i pass it as theme={default_theme_obj} to MuiThemeProvider nothing happen, it still have default MUI theme colors. This is exacly how it was worked it v0.19.
Context
I expect that theme is updated with new color set as primary.
My app have several different theme depend on user role. When user is on login page default should be applied with color from DEFAULT_THEME object and when user get access he also get theme from DB which is applied to MUI. It was working really well in v0.19 but when i switch MuiProvider is never updated.
Your Environment
Tech
Version
Material-UI
1.0.0-beta.20
React
16.1.1
browser
all
The text was updated successfully, but these errors were encountered:
Have a closer look at the documentation and the warnings in your console. The theme colors with Material-UI are rich objects containing hues (#xxxxxxx).
Follow #8075 for a better story on this end.
Expected Behavior
I want to add some custom colors as primary for theme.
Current Behavior
Updating theme with custom color not possible. New object is updated with new color but theme property not get updated.
Steps to Reproduce (for bugs)
I call createMuiTheme method and pass object
but when i pass it as theme={default_theme_obj} to MuiThemeProvider nothing happen, it still have default MUI theme colors. This is exacly how it was worked it v0.19.
Context
I expect that theme is updated with new color set as primary.
My app have several different theme depend on user role. When user is on login page default should be applied with color from DEFAULT_THEME object and when user get access he also get theme from DB which is applied to MUI. It was working really well in v0.19 but when i switch MuiProvider is never updated.
Your Environment
The text was updated successfully, but these errors were encountered: