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

feat(Snackbar): Add an option to control whether opening a new snackbar prematurely closes existing ones #29188

Open
ManelBH opened this issue Jun 4, 2024 · 0 comments
Labels
area: material/snack-bar feature This issue represents a new feature or feature request rather than a bug or bug fix P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@ManelBH
Copy link

ManelBH commented Jun 4, 2024

Feature Description

I propose having an option to control whether new snackbars automatically dismiss the existing one. When this autodismissal is disabled snackbars would be queued and shown for the specified duration one after another.

The current implementation is not fully compliant with the material specification which says:

Snackbars appear without warning, and don't require user interaction. They automatically disappear from the screen after a minimum of four seconds, and a maximum of ten seconds.
When multiple snackbar updates are necessary, they should appear one at a time.

Use case

Being able to have a material compliant option while keeping the original behaviour.

@ManelBH ManelBH added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Jun 4, 2024
@ManelBH ManelBH changed the title feat(Snackbar): Allow us to decide whether opening a new snackbar prematurely closes existing ones feat(Snackbar): Add an option to control whether opening a new snackbar prematurely closes existing ones Jun 4, 2024
@amysorto amysorto added needs triage This issue needs to be triaged by the team P5 The team acknowledges the request but does not plan to address it, it remains open for discussion area: material/snack-bar and removed needs triage This issue needs to be triaged by the team labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/snack-bar feature This issue represents a new feature or feature request rather than a bug or bug fix P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

No branches or pull requests

2 participants