mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +00:00
Adds loading state accessibility (#10926)
Improves accessibility by adding screen reader support to loading indicators. This ensures that users with disabilities are informed when the document is loading, improving the overall user experience.
This commit is contained in:
parent
e2693f9304
commit
2c4764f89e
@ -452,7 +452,8 @@
|
||||
"CANCEL": "Cancel",
|
||||
"RESET": "Reset",
|
||||
"THUMBNAILS": "Document thumbnails",
|
||||
"THUMBNAILS_PANLEL_CLOSE": "Close thumbnails panel"
|
||||
"THUMBNAILS_PANLEL_CLOSE": "Close thumbnails panel",
|
||||
"LOADING": "Document is loading"
|
||||
},
|
||||
"PAGE_LABEL": {
|
||||
"SHOWING": "Showing",
|
||||
|
@ -33,7 +33,8 @@
|
||||
aria-expanded="true">
|
||||
<div id="loader-container" class="adf-loader-container">
|
||||
<div class="adf-loader-item">
|
||||
<mat-progress-bar class="adf-loader-item-progress-bar" mode="indeterminate" />
|
||||
<mat-progress-bar [attr.aria-label]="'ADF_VIEWER.ARIA.LOADING' | translate"
|
||||
class="adf-loader-item-progress-bar" mode="indeterminate" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -2,9 +2,10 @@
|
||||
<div class="adf-viewer-render-layout-content adf-viewer__fullscreen-container">
|
||||
<div class="adf-viewer-render-content-container">
|
||||
<div class="adf-viewer-render__loading-screen">
|
||||
<h2>{{ 'ADF_VIEWER.LOADING' | translate }}</h2>
|
||||
<h2 id="loading-spinner-label">{{ 'ADF_VIEWER.LOADING' | translate }}</h2>
|
||||
<div>
|
||||
<mat-spinner class="adf-viewer-render__loading-screen__spinner" />
|
||||
<mat-spinner attr.aria-labelledby="loading-spinner-label"
|
||||
class="adf-viewer-render__loading-screen__spinner" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -103,5 +104,7 @@
|
||||
</div>
|
||||
}
|
||||
<ng-container *ngIf="viewerTemplateExtensions">
|
||||
<ng-template [ngTemplateOutlet]="viewerTemplateExtensions" [ngTemplateOutletContext]="{ urlFile: urlFile, extension: extension, markAsLoaded: markAsLoaded.bind(this) }" [ngTemplateOutletInjector]="injector" />
|
||||
<ng-template [ngTemplateOutlet]="viewerTemplateExtensions"
|
||||
[ngTemplateOutletContext]="{ urlFile: urlFile, extension: extension, markAsLoaded: markAsLoaded.bind(this) }"
|
||||
[ngTemplateOutletInjector]="injector" />
|
||||
</ng-container>
|
||||
|
Loading…
x
Reference in New Issue
Block a user