]>
Commit | Line | Data |
---|---|---|
6f03f944 | 1 | <section> |
09c55770 | 2 | <header *ngIf="steps.length > 2"> |
6f03f944 C |
3 | <div class="header-steps"> |
4 | <ng-container *ngFor="let step of steps; let i = index; let isLast = last;"> | |
5 | <div | |
6 | class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step), 'c-hand': isAccessible(step) }" [attr.aria-current]="selectedIndex === i" | |
7 | (click)="onClick(i)" | |
8 | > | |
9 | <div class="step-index"> | |
10 | <span class="visually-hidden" i18n>Step</span> {{ i + 1 }} | |
11 | ||
12 | <div class="completed-icon" *ngIf="isCompleted(step)"> | |
13 | <my-global-icon iconName="tick"></my-global-icon> | |
14 | </div> | |
15 | </div> | |
1d5342ab | 16 | |
6f03f944 C |
17 | <div class="step-label">{{ step.label }}</div> |
18 | </div> | |
1d5342ab | 19 | |
6f03f944 C |
20 | <!-- Do no display if this is the last child --> |
21 | <div *ngIf="!isLast" class="connector"></div> | |
22 | </ng-container> | |
23 | </div> | |
1d5342ab C |
24 | </header> |
25 | ||
6f03f944 | 26 | <div class="margin-content" [style.display]="selected ? 'block' : 'none'"> |
1d5342ab C |
27 | <ng-container [ngTemplateOutlet]="selected.content"></ng-container> |
28 | </div> | |
29 | ||
30 | </section> |