File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,8 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
165165 // this was also done by the animations module which some internal tests seem to depend on.
166166 // Simulate it by toggling the `hidden` attribute instead.
167167 '[style.visibility]' : '(!_container && !opened) ? "hidden" : null' ,
168+ // The sidenav container should not be focused on when used in side mode. See b/286459024 for
169+ // reference. Updates tabIndex of drawer/container to default to null if in side mode.
168170 '[attr.tabIndex]' : '(mode !== "side") ? "-1" : null' ,
169171 } ,
170172 changeDetection : ChangeDetectionStrategy . OnPush ,
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ export class MatSidenavContent extends MatDrawerContent {}
4747 templateUrl : 'drawer.html' ,
4848 host : {
4949 'class' : 'mat-drawer mat-sidenav' ,
50+ // The sidenav container should not be focused on when used in side mode. See b/286459024 for
51+ // reference. Updates tabIndex of drawer/container to default to null if in side mode.
5052 '[attr.tabIndex]' : '(mode !== "side") ? "-1" : null' ,
5153 // must prevent the browser from aligning text based on value
5254 '[attr.align]' : 'null' ,
You can’t perform that action at this time.
0 commit comments