Skip to content

Commit

Permalink
fix(wizard): remove duplicate, untranslated status screen reader text
Browse files Browse the repository at this point in the history
CDE-2292
  • Loading branch information
kevinbuhmann committed Oct 3, 2024
1 parent 1c359f2 commit 0afa001
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions projects/angular/src/wizard/wizard-stepnav-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,22 @@ import { ClrWizardPage } from './wizard-page';
[attr.disabled]="isDisabled ? '' : null"
>
<div class="clr-wizard-stepnav-link-icon">
<cds-icon *ngIf="hasError" shape="error-standard" aria-label="error"></cds-icon>
<cds-icon *ngIf="!hasError && isComplete" shape="success-standard" aria-label="complete"></cds-icon>
<cds-icon
*ngIf="hasError"
shape="error-standard"
[attr.aria-label]="commonStrings.keys.wizardStepError"
></cds-icon>
<cds-icon
*ngIf="!hasError && isComplete"
shape="success-standard"
[attr.aria-label]="commonStrings.keys.wizardStepSuccess"
></cds-icon>
</div>
<div class="clr-wizard-stepnav-link-page-number"><ng-content></ng-content></div>
<span class="clr-wizard-stepnav-link-title">
<ng-template [ngTemplateOutlet]="page.navTitle"></ng-template>
</span>
<span *ngIf="hasError" class="clr-sr-only">{{ commonStrings.keys.wizardStepError }}</span>
<span *ngIf="!hasError && isComplete" class="clr-sr-only">{{ commonStrings.keys.wizardStepSuccess }}</span>
</button>
`,
host: {
Expand Down

0 comments on commit 0afa001

Please sign in to comment.