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

Add pause on focus prop to Toaster #279

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tamatomas
Copy link

@tamatomas tamatomas commented Apr 10, 2023

It is generally a good practice to pause the auto-dismiss feature of the toast component when it receives focus. This is especially important for accessibility reasons, as it allows users with screen readers or other assistive technologies to have enough time to interact with the content of the toast message.
I added it as a prop but I believe it should be the default behavior so the prop is not needed IMHO.

@vercel
Copy link

vercel bot commented Apr 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hot-toast ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2023 3:16pm

@tamatomas
Copy link
Author

@timolins any plans to support this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants