[ACA-2605] - fix: add aria-label to toggle button (#5397)

* fix: add aria-label to toggle button

* fix: swap label to use translation key and pipe
This commit is contained in:
Taylor
2020-01-25 08:49:48 -05:00
committed by Eugenio Romano
parent f0189efd5a
commit 7d14e3fe86
2 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
</mat-select>
</mat-form-field>
<button *ngIf="selected" mat-icon-button (click)="toggleSortDirection()">
<button *ngIf="selected" mat-icon-button (click)="toggleSortDirection()" aria-label="'CORE.SEARCH.TOGGLE_ASC_DESC_ORDER' | translate">
<mat-icon *ngIf="ascending">arrow_upward</mat-icon>
<mat-icon *ngIf="!ascending">arrow_downward</mat-icon>
</button>