feat(stepper): refactor circle indicator to improve accessibility and styling
This commit is contained in:
@@ -16,18 +16,12 @@
|
||||
}
|
||||
|
||||
<!-- Circle indicator -->
|
||||
<button
|
||||
<div
|
||||
class="stepper-header__circle"
|
||||
[attr.aria-label]="step.label()"
|
||||
[disabled]="currentStepIndex() <= i"
|
||||
[class.is-clickable]="currentStepIndex() > i"
|
||||
(click)="goToStep(i)"
|
||||
>
|
||||
@if (currentStepIndex() > i) {
|
||||
<i class="fa-solid fa-check"></i>
|
||||
} @else {
|
||||
<span>{{ i + 1 }}</span>
|
||||
}
|
||||
</button>
|
||||
></div>
|
||||
|
||||
<!-- Label -->
|
||||
<span class="stepper-header__label">{{ step.label() }}</span>
|
||||
|
||||
Reference in New Issue
Block a user