mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Ensuring that the message “There were no items to show” is announced to the screen reader when necessary
This commit is contained in:
@@ -28,9 +28,11 @@
|
||||
</div>
|
||||
<div class="treeview-container">
|
||||
<ds-loading *ngIf="loading | async" [showMessage]="false"></ds-loading>
|
||||
<h2 *ngIf="(loading | async) !== true && dataSource.data.length === 0" class="h4 text-center text-muted mt-4" >
|
||||
<span>{{'vocabulary-treeview.search.no-result' | translate}}</span>
|
||||
</h2>
|
||||
<div aria-live="polite">
|
||||
<h2 *ngIf="(loading | async) !== true && dataSource.data.length === 0" class="h4 text-center text-muted mt-4" >
|
||||
<span>{{'vocabulary-treeview.search.no-result' | translate}}</span>
|
||||
</h2>
|
||||
</div>
|
||||
<cdk-tree [dataSource]="dataSource" [treeControl]="treeControl">
|
||||
<!-- Leaf node -->
|
||||
<cdk-tree-node *cdkTreeNodeDef="let node" cdkTreeNodePadding class="d-flex">
|
||||
|
Reference in New Issue
Block a user