-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sidenav): close via escape key and restore focus to trigger elem…
…ent (#1990) * feat(sidenav): close via escape key and restore focus to trigger element * Adds the ability to close a sidenav by pressing escape. * Restores focus to the trigger element after a sidenav is closed. * fix: test failures in IE and blur element if there's no focusable trigger * fix: use the keycode instead of (keydown.escape) * fix: use the renderer for focusing and blurring and fix a typo * fix a faulty merge * Fix a linter warning. * Stop the propagation of the keydown event. * Pointless commit to resolve git issue. * Revert pointless commit. * Fix conflict between the new functionality and the focus trapping. * Move the focus trapping behavior to the onOpen listener for improved reliability.
- Loading branch information
Showing
4 changed files
with
100 additions
and
6 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
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