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

[Snackbar] Support for second action / click to close #6913

Closed
toddmedema opened this issue May 21, 2017 · 0 comments
Closed

[Snackbar] Support for second action / click to close #6913

toddmedema opened this issue May 21, 2017 · 0 comments
Labels
component: snackbar This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@toddmedema
Copy link

Problem: Snackbars for persistent / important things should be harder to accidentally dismiss, but should still be dismissible by the user.

Example: Specifically, looking at the Google Inbox design, they have a "Your version is out of date" snackbar (which is the use case we're emulating) that does not auto-hide nor disappear if the user clicks anywhere on the page. Rather, it has a second action on the right side of the snackbar with a "X" (that's the same color as the text - the main call to action is still a different color). Clicking the X closes the snackbar.

We've looked at rolling our own snackbar to achieve this, but it really seems like something that'd benefit + make sense for the larger material-ui community.

@oliviertassinari oliviertassinari added the component: snackbar This is the name of the generic UI component, not the React module! label May 21, 2017
@oliviertassinari oliviertassinari added the new feature New feature or request label Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: snackbar This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants