-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Site editor: make sure only one template deleted snackbar displays at once #50625
Conversation
Size Change: +20 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Sorry I didn't catch this before it merged. I don't think we need to limit the number of Snackbars to one which might be too few. The problem is when they build up and begin to obscure the sidebar. A limit of 3 might work a bit better. |
I think how we now have it with one snackbar per notice type makes sense, ie. one for reset, one for deletes, etc. As far as I know, the notices package currently has no option to specify a max number at a given time and I don't think it is worth adding this complexity to it unless we get extensive feedback from users that the single notice per type is not working for them. |
What?
Make sure only one template deleted snackbar notice displays at a time.
Why?
Stacking multiple notices obscures the interface.
Fixes: #46901
How?
Gives the notice a unique id.
Testing Instructions
Add several custom template parts
In the manage all template parts screen use the overflow menu to delete each new template
Check that only one snackbar displays
Screenshots or screencast
Before:
more-snackbars-eaten-before.mp4
After:
more-snackbars-eaten.mp4