Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add explicit step and aria-current attribute in register form

Caroline Chuong1bab226f5c2e
diff --git a/client/src/app/+signup/+register/custom-stepper.component.html b/client/src/app/+signup/+register/custom-stepper.component.html
index bf507fc4f5..57374d41e5 100644
--- a/client/src/app/+signup/+register/custom-stepper.component.html
+++ b/client/src/app/+signup/+register/custom-stepper.component.html
@@ -2,11 +2,11 @@
<header>
<ng-container *ngFor="let step of steps; let i = index; let isLast = last;">
<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)"
>
<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>
</div>