File tree 1 file changed +1
-1
lines changed
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
157
157
'class' : 'mat-drawer' ,
158
158
// must prevent the browser from aligning text based on value
159
159
'[attr.align]' : 'null' ,
160
+ '[attr.tabindex]' : '(!opened || mode === "side") ? null : -1' ,
160
161
'[class.mat-drawer-end]' : 'position === "end"' ,
161
162
'[class.mat-drawer-over]' : 'mode === "over"' ,
162
163
'[class.mat-drawer-push]' : 'mode === "push"' ,
@@ -165,7 +166,6 @@ export class MatDrawerContent extends CdkScrollable implements AfterContentInit
165
166
// this was also done by the animations module which some internal tests seem to depend on.
166
167
// Simulate it by toggling the `hidden` attribute instead.
167
168
'[style.visibility]' : '(!_container && !opened) ? "hidden" : null' ,
168
- '[attr.tabindex]' : 'mode === "side" ? null : "-1"' ,
169
169
} ,
170
170
changeDetection : ChangeDetectionStrategy . OnPush ,
171
171
encapsulation : ViewEncapsulation . None ,
You can’t perform that action at this time.
0 commit comments