-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Dropdown): add a11y prop to tab moves focus (#1600)
This adds a new a11y prop to Dropdrop, defaults to true. When the a11y prop is explicitly set to false: This changes the way tab works within the Dropdown. tab/shift-tab will move focus to the next logic item: tab will move down until the end. Then, at the end of the menu it will focus the next focusable item on the page and close the menu. shift-tab will move up until the start. Thenm, at the beginning of the menu it will focus the toggle and close the menu. Fixes #1441
- Loading branch information
1 parent
3bd4182
commit 1bd965f
Showing
2 changed files
with
4 additions
and
1 deletion.
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