Skip to content

Add pause on focus prop to Toaster - #279

Open
tamatomas wants to merge 1 commit into
timolins:mainfrom
tamatomas:add-pause-on-focus
Open

tamatomas wants to merge 1 commit into
timolins:mainfrom
tamatomas:add-pause-on-focus

Conversation

@tamatomas

@tamatomas tamatomas commented Apr 10, 2023

Copy link
Copy Markdown

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

vercel Bot commented Apr 10, 2023

Copy link
Copy Markdown

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
Copy Markdown
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