feat(@vtmn/css): be able to choose the duration of display for snackbar (& toast) #1460
Labels
community 👥
As we stopped improvements for this version of Vitamin, this issue needs to be done by the community
enhancement 🚀
New feature or request
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: