Skip to content

Commit c113a6f

Browse files
committed
fix(material/sidenav): removes -1 tabindex from sidenav
Updates Angular Components SideNav component so that when the mode is not equalt to side the tabIndex value is -1. Otherwise provide a null value. Fixes b/286459024
1 parent c286a94 commit c113a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/sidenav/drawer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ 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-
'tabIndex': '-1',
168+
'tabIndex': '(mode !== "side") ? "-1" : null',
169169
},
170170
changeDetection: ChangeDetectionStrategy.OnPush,
171171
encapsulation: ViewEncapsulation.None,

0 commit comments

Comments
 (0)