-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
MUITheme needs to affect Login as it does for the rest of the Application #2368
Comments
Is there a solution to bring the theme through that is defined in app.js? I tried using what's in the demo (https://github.com/marmelab/react-admin/blob/master/examples/demo/src/Login.js) but it doesn't match my app theme. |
Fixed by #2591 |
If I don't set a theme, the login page still comes through as pink (and the logged in areas with a blue header). Am I missing something? |
@trsteel88 The new default login page does support theming in react-admin 2.5. If you created your own Login page, you should decorate it with MuiThemeProvider. I'll update the Authentication docs accordingly. |
Thanks. Works with the new docs |
Is your feature request related to a problem? Please describe.
Adding a Mui theme on
<Admin>
usingtheme={customTheme}
doesn't affect LoginDescribe the solution you'd like
Adding a MUI theme like that would affect Login as it does with the rest of the Application:
Something that looks like:
Describe alternatives you've considered
Using withStyles feels hacky and it is difficult to change error color, labels when inputs are on focus etc
The text was updated successfully, but these errors were encountered: