-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Chore: Shorten timeout duration for Snackbar component
#73814
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
Chore: Shorten timeout duration for Snackbar component
#73814
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @badasswp! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
|
Thanks for the PR. I'm keen to see this land as an improvement, so I've added a reviewer for a broader ping, to see if we can make this happen. |
…om:badasswp/gutenberg into chore/adjust-timeout-duration-for-snackbar
Thank you @jasmussen Much appreciated. |
|
The issue states: "The industry standard sort of sits around 5-6 seconds". Can you share which Toast/Snackar libraries you have evaluated? Looking at Sonner, it has 4s as the default value - https://sonner.emilkowal.ski/toast#api-reference. |
@Mamaduka Please see: Just to be clear, I'm fine with whatever value we decide to use moving forward. |
mirka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with this if Design is ok with it 👍 We can always re-adjust when needed.
What?
Closes #73813
This PR attempts to adjust the timeout
durationfor theSnackbarcomponent to 6 seconds.Why?
Previously, I had raised a PR to introduce a
durationprop to provide users with the ability to modify the timeout duration of theSnackbarcomponent. However, after much concern from other contributors, it was suggested that it would be preferable to reduce the timeout duration than to introduce a prop so as to ensure a much more consistent UX experience for all WP users.Based on @jasmussen feedback I have adjusted the duration down to 6s.
How?
This PR adjusts the
NOTICE_TIMEOUTconstant to6000.