-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[changed] Maintain focus inside of tray
This adds a new prop `maintainFocus` which defaults to `true`. This makes the tray "modal" in that it will not allow focus to escape from within it until it is explicitly closed via close button, escape key, or clicking in the overlay area. Previous behavior can be achieved by setting the `maintainFocus` prop to `false`. This defaults to `true` so that it can achieve a greater level of accessibility support which I felt was valuable to everyone so it is opt-out rather than opt-in.
- Loading branch information
1 parent
b052164
commit 720c1ce
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters