Skip to content
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

Cannot override SnackBar style in Notification Component #2400

Closed
smontlouis opened this issue Oct 8, 2018 · 2 comments
Closed

Cannot override SnackBar style in Notification Component #2400

smontlouis opened this issue Oct 8, 2018 · 2 comments

Comments

@smontlouis
Copy link

Since Notification component is using Snackbar, that would be great to customize SnackBar style for example.

What you were expecting:
I want to customize anchorOriginBottomCenter css property from SnackBar :
<Notification classes={{ root: ..., anchorOriginBottomCenter: classes.anchorPosition }}

What happened instead:
<Notification /> ignore classes

Steps to reproduce:
Create a notification component, try to modify SnackBar through the css api https://material-ui.com/api/snackbar/#css-api

@djhi
Copy link
Collaborator

djhi commented Oct 8, 2018

Indeed, thanks for reporting. This looks like a good first issue! See https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/layout/Notification.js

@fargito
Copy link
Contributor

fargito commented May 27, 2019

Shouldn't this be closed ? ;)

@djhi djhi closed this as completed May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants