Skip to content

Commit ac4203d

Browse files
committed
fix(stepper): remove tabindex from content
A while ago in #14892 we added a `tabindex` to the content of the current step, however since then we consulted with the a11y team and it looks like adding the `tabindex` there isn't the best approach. Fixes #16692.
1 parent a0aee92 commit ac4203d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/material/stepper/stepper-horizontal.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
<div class="mat-horizontal-content-container">
2929
<div *ngFor="let step of steps; let i = index"
30-
[attr.tabindex]="selectedIndex === i ? 0 : null"
3130
class="mat-horizontal-stepper-content" role="tabpanel"
3231
[@stepTransition]="_getAnimationDirection(i)"
3332
(@stepTransition.done)="_animationDone.next($event)"

src/material/stepper/stepper-vertical.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
<div class="mat-vertical-content-container" [class.mat-stepper-vertical-line]="!isLast">
2525
<div class="mat-vertical-stepper-content" role="tabpanel"
26-
[attr.tabindex]="selectedIndex === i ? 0 : null"
2726
[@stepTransition]="_getAnimationDirection(i)"
2827
(@stepTransition.done)="_animationDone.next($event)"
2928
[id]="_getStepContentId(i)"

0 commit comments

Comments
 (0)