You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prevent snackbars from stacking up by adding a max count #53201
Snackbars should have a max count, where you can't end up with a stack of them hanging around. #53200 will reduce the number, but there should be a max. Even as small as three notice max may work just fine.
I think it would require an update to the SnackbarList component.
@mirka, how doable is this with current snackbar components?
Architecturally it seems feasible to me, since SnackbarList has full control over how the notice data objects are rendered. Most of the complexity would be in getting the interactive animations right.
Activity
glendaviesnz commentedon Jul 31, 2023
Also, each notice type should have a unique id as done here so that only one of that notice type appears at a time.
richtabor commentedon Aug 1, 2023
Yea, perhaps the copy to clipboard snackbar doesn't have one?
Mamaduka commentedon Aug 1, 2023
I like how this library, Sonner, handles stacking and multiple snackbars/toasts.
richtabor commentedon Aug 1, 2023
Very cool! What do we need to do to try this interaction in the editor?
For reference:
CleanShot.2023-08-01.at.11.34.27.mp4
Mamaduka commentedon Aug 1, 2023
I think it would require an update to the
SnackbarListcomponent.@mirka, how doable is this with current snackbar components?
jasmussen commentedon Aug 2, 2023
Yes please 🙏
mirka commentedon Aug 4, 2023
Architecturally it seems feasible to me, since
SnackbarListhas full control over how the notice data objects are rendered. Most of the complexity would be in getting the interactive animations right.