mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -200,6 +200,9 @@
|
|||||||
"CLEAR": "Clear",
|
"CLEAR": "Clear",
|
||||||
"TOGGLE": "Toggle value"
|
"TOGGLE": "Toggle value"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"SEARCH": {
|
||||||
|
"TOGGLE_ASC_DESC_ORDER": "Toggle results between ascending and descending order"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"COMMENTS": {
|
"COMMENTS": {
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</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_upward</mat-icon>
|
||||||
<mat-icon *ngIf="!ascending">arrow_downward</mat-icon>
|
<mat-icon *ngIf="!ascending">arrow_downward</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
Reference in New Issue
Block a user