File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
157157 'class' : 'mat-drawer' ,
158158 // must prevent the browser from aligning text based on value
159159 '[attr.align]' : 'null' ,
160+ '[attr.tabindex]' : '(!opened || mode === "side") ? null : -1' ,
160161 '[class.mat-drawer-end]' : 'position === "end"' ,
161162 '[class.mat-drawer-over]' : 'mode === "over"' ,
162163 '[class.mat-drawer-push]' : 'mode === "push"' ,
@@ -165,7 +166,6 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
165166 // this was also done by the animations module which some internal tests seem to depend on.
166167 // Simulate it by toggling the `hidden` attribute instead.
167168 '[style.visibility]' : '(!_container && !opened) ? "hidden" : null' ,
168- '[attr.tabindex]' : 'mode === "side" ? null : "-1"' ,
169169 } ,
170170 changeDetection : ChangeDetectionStrategy . OnPush ,
171171 encapsulation : ViewEncapsulation . None ,
You can’t perform that action at this time.
0 commit comments