[Snackbar] Delay from closing if hovered #5218
Labels
component: snackbar
This is the name of the generic UI component, not the React module!
new feature
New feature or request
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.
The text was updated successfully, but these errors were encountered: