-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sidenav): focus capturing (#1695)
* Focus capturing for sidenav. Captures focus when sidenav is open in "over" or "push" mode, but not when opened in "side" mode. * lint fixes. * address comments * addressed comments * s/active/!disabled * fix tests * fix lint * fix visibility issue
- Loading branch information
Showing
5 changed files
with
116 additions
and
19 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div tabindex="0" (focus)="focusLastTabbableElement()"></div> | ||
<div *ngIf="!disabled" tabindex="0" (focus)="focusLastTabbableElement()"></div> | ||
<div #trappedContent><ng-content></ng-content></div> | ||
<div tabindex="0" (focus)="focusFirstTabbableElement()"></div> | ||
<div *ngIf="!disabled" tabindex="0" (focus)="focusFirstTabbableElement()"></div> |
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