|
11 | 11 | @switch (orientation) {
|
12 | 12 | @case ('horizontal') {
|
13 | 13 | <div class="mat-horizontal-stepper-wrapper">
|
14 |
| - <div class="mat-horizontal-stepper-header-container"> |
| 14 | + <div class="mat-horizontal-stepper-header-container" role="tablist"> |
15 | 15 | @for (step of steps; track step) {
|
16 | 16 | <ng-container
|
| 17 | + role="tab" |
17 | 18 | [ngTemplateOutlet]="stepTemplate"
|
18 | 19 | [ngTemplateOutletContext]="{step, i: $index}"/>
|
19 | 20 | @if (!$last) {
|
|
40 | 41 | }
|
41 | 42 |
|
42 | 43 | @case ('vertical') {
|
43 |
| - @for (step of steps; track step) { |
44 |
| - <div class="mat-step"> |
45 |
| - <ng-container |
46 |
| - [ngTemplateOutlet]="stepTemplate" |
47 |
| - [ngTemplateOutletContext]="{step, i: $index}"/> |
48 |
| - <div |
49 |
| - #animatedContainer |
50 |
| - class="mat-vertical-content-container" |
51 |
| - [class.mat-stepper-vertical-line]="!$last" |
52 |
| - [class.mat-vertical-content-container-active]="selectedIndex === $index" |
53 |
| - [attr.inert]="selectedIndex === $index ? null : ''"> |
54 |
| - <div class="mat-vertical-stepper-content" |
55 |
| - role="tabpanel" |
56 |
| - [id]="_getStepContentId($index)" |
57 |
| - [attr.aria-labelledby]="_getStepLabelId($index)"> |
58 |
| - <div class="mat-vertical-content"> |
59 |
| - <ng-container [ngTemplateOutlet]="step.content"/> |
| 44 | + <div class="mat-vertical-stepper-wrapper" role="tree"> |
| 45 | + @for (step of steps; track step) { |
| 46 | + <div class="mat-step" role="treeitem"> |
| 47 | + <ng-container |
| 48 | + [ngTemplateOutlet]="stepTemplate" |
| 49 | + [ngTemplateOutletContext]="{step, i: $index}"/> |
| 50 | + <div |
| 51 | + #animatedContainer |
| 52 | + class="mat-vertical-content-container" |
| 53 | + [class.mat-stepper-vertical-line]="!$last" |
| 54 | + [class.mat-vertical-content-container-active]="selectedIndex === $index" |
| 55 | + [attr.inert]="selectedIndex === $index ? null : ''"> |
| 56 | + <div class="mat-vertical-stepper-content" |
| 57 | + [id]="_getStepContentId($index)" |
| 58 | + [attr.aria-labelledby]="_getStepLabelId($index)"> |
| 59 | + <div class="mat-vertical-content"> |
| 60 | + <ng-container [ngTemplateOutlet]="step.content"/> |
| 61 | + </div> |
60 | 62 | </div>
|
61 | 63 | </div>
|
62 | 64 | </div>
|
63 |
| - </div> |
64 |
| - } |
| 65 | + } |
| 66 | + </div> |
65 | 67 | }
|
66 | 68 | }
|
67 | 69 |
|
|
0 commit comments