]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+signup/+register/custom-stepper.component.html
Fix lint
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +register / custom-stepper.component.html
index f43a4684228f0c99429f655f8461aaa728a1679c..f2687e520956687e64f921b780b66b301b71600e 100644 (file)
@@ -2,9 +2,10 @@
   <header *ngIf="steps.length > 2">
     <div class="header-steps">
       <ng-container *ngFor="let step of steps; let i = index; let isLast = last;">
-        <div
-          class="step-info" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step), 'c-hand': isAccessible(step) }" [attr.aria-current]="selectedIndex === i"
-          (click)="onClick(i)"
+        <button
+          class="step-info button-unstyle" [ngClass]="{ active: selectedIndex === i, completed: isCompleted(step) }"
+          [disabled]="!isAccessible(step)"
+          [attr.aria-current]="selectedIndex === i" (click)="onClick(i)"
         >
           <div class="step-index">
             <span class="visually-hidden" i18n>Step</span> {{ i + 1 }}
@@ -15,7 +16,7 @@
           </div>
 
           <div class="step-label">{{ step.label }}</div>
-        </div>
+        </button>
 
         <!-- Do no display if this is the last child -->
         <div *ngIf="!isLast" class="connector"></div>