Add Modal's keyboard escape and focus options to Toasts
@patrickhlauke is already working on this.
Since Oct 5, 2022.
- Dominant language
- MDX
- Stars
- 175k
- Forks
- 78.6k
- Avg merge
- 7h 19m
- Merged PRs (30d)
- 35
Description
Prerequisites
- I have searched for duplicate or closed feature requests
- I have read the contributing guidelines
Proposal
Add configuration options to Toast components that allow for keyboard escapes and element focus using the same methods as modals.
Motivation and context
Modals contain configuration options that allows for toggling off/on the ability for the user to keyboard esc to close and grant focus to the modal-window on init. Toasts can be used for similar, but less intrusive purposes in the UI, and allow to disable the autohide feature, but don't currently allow for keyboard escape options or focus, though they are perfectly capable of housing user inputs, meaning they are partially obscured from non-mouse users. Adding the same option gives both the developer and the user greater control over visibility of toasts.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.