-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navbar keyboard navigation): optionally navigate to submenu item…
…s using the `Tab` and `Enter` keys. (#3482) * feat(navbar keyboard navigation): add arrow keys navigation to navbar * feat(navbar keyboard navigation): add arrow keys navigation to navbar * feat(navbar keyboard navigation): add event types * feat(navbar keyboard navigation): cleanup unused code * feat(navbar keyboard navigation): make Tab and Enter key primarily for keyboard navigation * feat(navbar keyboard navigation): make Tab and Enter key primarily for keyboard navigation * feat(navbar keyboard navigation): tabIndex to focus submenu container * feat(navbar keyboard navigation): update changeset * feat(navbar keyboard navigation): rename state variable * feat(navbar keyboard navigation): prevent default enter behaviour * feat(navbar keyboard navigation): handle submenu state after onBlur * feat(keyboard navigation): add submenu preview on navigation * feat(keyboard navigation): remove unused variables * feat(accessibility): remove unused hook * feat(main nav accessibility): update focus when navigating to a new submenu --------- Co-authored-by: Ddouglasz <douglas.egiemeh@gmail.com>
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@commercetools-frontend/application-shell': minor | ||
--- | ||
|
||
Improve keyboard accessibility by switching between the menu items and submenu items using mainly the Tab and Enter keys. |
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