-
Notifications
You must be signed in to change notification settings - Fork 75
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(@vtmn/css): be able to choose the duration of display for snackbar (& toast) #1460
Comments
Hello Pauline, Thanks for this issue and your proposition. Normally, you can totally control the display duration of the VtmnSnackbar on your own. Here is an example I made with |
it works if you put a value smaller than 4,5 second, but if you put |
Hi @Z26PGOBL, oh you're right, sorry! |
Describe the bug
We are implementing the snackbar in our application and for accessibility purpose our UI/UX team recommended that the snackbar should be displayed for 8 seconds.
We see that the duration is hardcoded in the
--vtmn-animation_overlay
custom property of animations design-tokens so we manage to override it, but we think it would be good to be able to set it more "gracefully".Steps to reproduce
1. Go to https://decathlon.github.io/vitamin-web/@vtmn/showcase-css/?path=/docs/components-overlays-snackbar--demo
2. Click on a demo button
3. See the snackbar appear and disappear after about 5 seconds
Expected behavior
We should be able to set the duration time
The text was updated successfully, but these errors were encountered: