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] Delay from closing if hovered #5218

Closed
efroim102 opened this issue Sep 19, 2016 · 1 comment
Closed

[Snackbar] Delay from closing if hovered #5218

efroim102 opened this issue Sep 19, 2016 · 1 comment
Labels
component: snackbar This is the name of the generic UI component, not the React module! new feature New feature or request

Comments

@efroim102
Copy link

I have Snackbars with actions in my application which I'd love my users to be able to click without having them disappear as soon as they hover over them because the timer expired.

I know I can increase the duration the Snackbar is shown, but in most cases I don't want it to display too long and I want the duration to be consistent across the application, when a user hovers over a Snackbar the chances of them selecting the action increases therefore it shouldn't close until the user takes the mouse of it.

This is an essential feature considering when it's used to undo tasks like deleting items.

I've been able to implement this in the MaterializeCSS library by cloning their Snackbar component and changing the functionality to only close if the element is not hovered over.

@oliviertassinari oliviertassinari changed the title Delay Snackbar from closing if hovered [Snackbar] Delay from closing if hovered Sep 19, 2016
@bright-sea
Copy link

+1

@oliviertassinari oliviertassinari added the component: snackbar This is the name of the generic UI component, not the React module! label Dec 18, 2016
@oliviertassinari oliviertassinari added the new feature New feature or request label Mar 3, 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

3 participants