mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add explicit step and aria-current attribute in register form
This commit is contained in:
parent
f9b6d51f48
commit
1bab226f5c
@ -2,11 +2,11 @@
|
|||||||
<header>
|
<header>
|
||||||
<ng-container *ngFor="let step of steps; let i = index; let isLast = last;">
|
<ng-container *ngFor="let step of steps; let i = index; let isLast = last;">
|
||||||
<div
|
<div
|
||||||
class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step) }"
|
class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step) }" [attr.aria-current]="selectedIndex === i"
|
||||||
(click)="onClick(i)"
|
(click)="onClick(i)"
|
||||||
>
|
>
|
||||||
<div class="step-index">
|
<div class="step-index">
|
||||||
<ng-container *ngIf="!isCompleted(step)">{{ i + 1 }}</ng-container>
|
<ng-container *ngIf="!isCompleted(step)"><span class="sr-only" i18n>Step</span> {{ i + 1 }}</ng-container>
|
||||||
<my-global-icon *ngIf="isCompleted(step)" iconName="tick"></my-global-icon>
|
<my-global-icon *ngIf="isCompleted(step)" iconName="tick"></my-global-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user