|
1 | | -<div class="mat-horizontal-stepper-header-container"> |
2 | | - <ng-container *ngFor="let step of steps; let i = index; let isLast = last"> |
3 | | - <mat-step-header class="mat-horizontal-stepper-header" |
4 | | - (click)="step.select()" |
5 | | - (keydown)="_onKeydown($event)" |
6 | | - [tabIndex]="_getFocusIndex() === i ? 0 : -1" |
7 | | - [id]="_getStepLabelId(i)" |
8 | | - [attr.aria-posinset]="i + 1" |
9 | | - [attr.aria-setsize]="steps.length" |
10 | | - [attr.aria-controls]="_getStepContentId(i)" |
11 | | - [attr.aria-selected]="selectedIndex == i" |
12 | | - [attr.aria-label]="step.ariaLabel || null" |
13 | | - [attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null" |
14 | | - [index]="i" |
15 | | - [state]="_getIndicatorType(i, step.state)" |
16 | | - [label]="step.stepLabel || step.label" |
17 | | - [selected]="selectedIndex === i" |
18 | | - [active]="step.completed || selectedIndex === i || !linear" |
19 | | - [optional]="step.optional" |
20 | | - [errorMessage]="step.errorMessage" |
21 | | - [iconOverrides]="_iconOverrides" |
22 | | - [disableRipple]="disableRipple"> |
23 | | - </mat-step-header> |
24 | | - <div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div> |
25 | | - </ng-container> |
26 | | -</div> |
| 1 | +<div class="mat-horizontal-stepper-wrapper"> |
| 2 | + <div class="mat-horizontal-stepper-header-container"> |
| 3 | + <ng-container *ngFor="let step of steps; let i = index; let isLast = last"> |
| 4 | + <mat-step-header class="mat-horizontal-stepper-header" |
| 5 | + (click)="step.select()" |
| 6 | + (keydown)="_onKeydown($event)" |
| 7 | + [tabIndex]="_getFocusIndex() === i ? 0 : -1" |
| 8 | + [id]="_getStepLabelId(i)" |
| 9 | + [attr.aria-posinset]="i + 1" |
| 10 | + [attr.aria-setsize]="steps.length" |
| 11 | + [attr.aria-controls]="_getStepContentId(i)" |
| 12 | + [attr.aria-selected]="selectedIndex == i" |
| 13 | + [attr.aria-label]="step.ariaLabel || null" |
| 14 | + [attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null" |
| 15 | + [index]="i" |
| 16 | + [state]="_getIndicatorType(i, step.state)" |
| 17 | + [label]="step.stepLabel || step.label" |
| 18 | + [selected]="selectedIndex === i" |
| 19 | + [active]="step.completed || selectedIndex === i || !linear" |
| 20 | + [optional]="step.optional" |
| 21 | + [errorMessage]="step.errorMessage" |
| 22 | + [iconOverrides]="_iconOverrides" |
| 23 | + [disableRipple]="disableRipple"> |
| 24 | + </mat-step-header> |
| 25 | + <div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div> |
| 26 | + </ng-container> |
| 27 | + </div> |
27 | 28 |
|
28 | | -<div class="mat-horizontal-content-container"> |
29 | | - <div *ngFor="let step of steps; let i = index" |
30 | | - [attr.tabindex]="selectedIndex === i ? 0 : null" |
31 | | - class="mat-horizontal-stepper-content" role="tabpanel" |
32 | | - [@stepTransition]="_getAnimationDirection(i)" |
33 | | - (@stepTransition.done)="_animationDone.next($event)" |
34 | | - [id]="_getStepContentId(i)" |
35 | | - [attr.aria-labelledby]="_getStepLabelId(i)" |
36 | | - [attr.aria-expanded]="selectedIndex === i"> |
37 | | - <ng-container [ngTemplateOutlet]="step.content"></ng-container> |
38 | | - </div> |
| 29 | + <div class="mat-horizontal-content-container"> |
| 30 | + <div *ngFor="let step of steps; let i = index" |
| 31 | + [attr.tabindex]="selectedIndex === i ? 0 : null" |
| 32 | + class="mat-horizontal-stepper-content" role="tabpanel" |
| 33 | + [@stepTransition]="_getAnimationDirection(i)" |
| 34 | + (@stepTransition.done)="_animationDone.next($event)" |
| 35 | + [id]="_getStepContentId(i)" |
| 36 | + [attr.aria-labelledby]="_getStepLabelId(i)" |
| 37 | + [attr.aria-expanded]="selectedIndex === i"> |
| 38 | + <ng-container [ngTemplateOutlet]="step.content"></ng-container> |
| 39 | + </div> |
| 40 | + </div> |
39 | 41 | </div> |
0 commit comments