-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
toasts: make default duration 5s #31109
Conversation
Make it 2000ms instead of 500ms
After thinking about it, I think 1s might be a better default. |
I chose to set the default |
@Johann-S Yes, users can change the default duration. But the default duration should be enough for the general toast so that the users don't need to change the default whenever they use the toast. |
Agreed on this being longer. Will play with the timing and would appreciate others doing the same before we decide and merge. |
So, do we all agree to 2s? Should it be something else? |
i'd tend more towards 5s to be honest (would give sufficient time by default for assistive tech to announce a short toast notification without it disappearing mid-reading) |
Personally I prefer 4-5 seconds. Also, although a little old, this discussion may be helpful jackbsteinberg/std-toast#37 |
Let's go with 5s. @rohit2sharma95 Can you make the update, please? |
Updated @mdo |
We should add this in Migration too. |
Android have constants for a long and a short duration, they are 4 seconds for the short toast and 7 seconds for the long toast. These might be well thought out (or not?) durations backed by UX research.
|
Co-authored-by: XhmikosR <[email protected]>
Closes #28185