ACS-3544 Fix accessibility issues in ACA trashcan (#7845)

This commit is contained in:
MichalKinas 2022-09-22 07:55:28 +02:00 committed by GitHub
parent 21fd1a0dbf
commit 1a06c2866a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View File

@ -63,6 +63,7 @@
<mat-progress-spinner <mat-progress-spinner
id="adf-document-list-loading" id="adf-document-list-loading"
class="adf-document-list-loading-margin" class="adf-document-list-loading-margin"
[attr.aria-label]="'ADF-DOCUMENT-LIST.LOADER_LABEL' | translate"
[color]="'primary'" [color]="'primary'"
[mode]="'indeterminate'"> [mode]="'indeterminate'">
</mat-progress-spinner> </mat-progress-spinner>

View File

@ -71,7 +71,8 @@
"VIEW": "View", "VIEW": "View",
"REMOVE": "Remove", "REMOVE": "Remove",
"DOWNLOAD": "Download" "DOWNLOAD": "Download"
} },
"LOADER_LABEL": "Document list loader"
}, },
"ALFRESCO_DOCUMENT_LIST": { "ALFRESCO_DOCUMENT_LIST": {
"BUTTON": { "BUTTON": {

View File

@ -66,6 +66,8 @@
<span *ngIf="col.title && col.sortable && isDraggingHeaderColumn" class="adf-sr-only" aria-live="polite"> <span *ngIf="col.title && col.sortable && isDraggingHeaderColumn" class="adf-sr-only" aria-live="polite">
{{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }} {{ getSortLiveAnnouncement(col) | translate: { string: col.title | translate } }}
</span> </span>
<span *ngIf="!col.title && !col.sortable && !headerFilterTemplate" [attr.title]="'ADF-DATATABLE.ACCESSIBILITY.EMPTY_HEADER' | translate"></span>
</ng-container> </ng-container>
<div *ngIf="col.header" class="adf-datatable-cell-value"> <div *ngIf="col.header" class="adf-datatable-cell-value">

View File

@ -335,7 +335,8 @@
"SORT_DESCENDING_BY": "Descending by {{ string }}", "SORT_DESCENDING_BY": "Descending by {{ string }}",
"ICON_TEXT": "Item type {{ type }}", "ICON_TEXT": "Item type {{ type }}",
"ICON_DISABLED": "Disabled", "ICON_DISABLED": "Disabled",
"ROW_OPTION_BUTTON": "Actions" "ROW_OPTION_BUTTON": "Actions",
"EMPTY_HEADER": "Empty header"
}, },
"FILE_TYPE": { "FILE_TYPE": {
"DOCUMENT": "Document", "DOCUMENT": "Document",