mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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>
|
||||||
<div class="treeview-container">
|
<div class="treeview-container">
|
||||||
<ds-loading *ngIf="loading | async" [showMessage]="false"></ds-loading>
|
<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" >
|
<div aria-live="polite">
|
||||||
<span>{{'vocabulary-treeview.search.no-result' | translate}}</span>
|
<h2 *ngIf="(loading | async) !== true && dataSource.data.length === 0" class="h4 text-center text-muted mt-4" >
|
||||||
</h2>
|
<span>{{'vocabulary-treeview.search.no-result' | translate}}</span>
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
<cdk-tree [dataSource]="dataSource" [treeControl]="treeControl">
|
<cdk-tree [dataSource]="dataSource" [treeControl]="treeControl">
|
||||||
<!-- Leaf node -->
|
<!-- Leaf node -->
|
||||||
<cdk-tree-node *cdkTreeNodeDef="let node" cdkTreeNodePadding class="d-flex">
|
<cdk-tree-node *cdkTreeNodeDef="let node" cdkTreeNodePadding class="d-flex">
|
||||||
|
Reference in New Issue
Block a user