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

Ability to override snackbard background colours #45

Closed
IsabellaRey opened this issue Apr 25, 2019 · 3 comments
Closed

Ability to override snackbard background colours #45

IsabellaRey opened this issue Apr 25, 2019 · 3 comments
Assignees
Milestone

Comments

@IsabellaRey
Copy link

We're already using snackbars in other parts of our app, and it would be great if we could style the material-ui-dropzone snackbars background colour to be what we want (so we can make it the same as in the rest of the app).

For example, our colour for success is not the green[600] used here

@njordhov
Copy link

njordhov commented Jul 5, 2019

Agree that the snackbar background colors shouldn't be hardcoded but rather customizable (preferably through the theme).

Meanwhile, here is a css patch you can use as a temporary work-around, modifying the success variant of the snackbar:

div[aria-describedby="client-snackbar"][class*=" SnackbarContentWrapper-success"] {
   background-color: gray;
}

@lavin-ds
Copy link

It would also be nice if we could change the positioning of the snackbar too

@Liiva
Copy link

Liiva commented Jan 17, 2020

Ideally we should be able to customize any of the Snackbar props, in my case I'd like to change the autoHideDuration (it's hardcoded to 6000).

@panz3r panz3r self-assigned this Apr 17, 2020
@panz3r panz3r added this to the 3.1.x milestone Apr 17, 2020
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

5 participants