-
Notifications
You must be signed in to change notification settings - Fork 76
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
Feature request: Close button #91
Comments
You can still click on toast to close |
I know, but I would like the functionality of the close button for two reasons:
I hope the extra close button isn't a lot of extra work. |
+1 for this feature request. This would be especially helpful if a toast is set to 0 duration (persisted), so an "X" would indicate that it is interactable and dismissable. Perhaps it could be a configurable option whether to display the close button or not. |
+1 for this feature request. My use case is exactly as @braincomb's. I'm also setting the duration to 0 and would like to give my customers the very clear understanding that by clicking on the toast they can dismiss it. I'd just like a close button to be visible even if clicking anywhere on the toast would dismiss it. |
I'm submitting a ...
Tell about your platform
Expected behavior
Additional option for close button would be very welcome:
showCloseBtn
- an 'X' appears in the upper right corner of the toast notification to close it. Than you can setdismissible
to false and still allow the user to close the toast by clicking this close button. This would be very useful when you want to add a button to the toast notification and avoid accidental closing (e.g. touch screen).The text was updated successfully, but these errors were encountered: