Skip to content

Commit

Permalink
AB#480 Screen reader should read no files and errors for file tree views
Browse files Browse the repository at this point in the history
  • Loading branch information
rechen committed Jan 30, 2023
1 parent 70051f2 commit a505fdb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@
(keydown)="handleKeyboardNavigation($event)"
(contextmenu)="showContextMenu($event)">

<p *ngIf="treeRows.length === 0" tabindex="0" class="tree-view-empty">{{'file-explorer.noFiles' | i18n }}</p>
<p *ngIf="fileNavigator.error" tabindex="0" class="tree-view-error">{{fileNavigator.error.message}}</p>

<div class="tree-rows-container"
[class.drop-target]="dropTargetPath === ''"
(dragenter)="dragEnterRow($event)"
(dragleave)="dragLeaveRow($event)"
(dragover)="handleDragHover($event)"
(drop)="handleDropOnRow($event)">
<div *ngIf="treeRows.length === 0" class="tree-view-empty">{{'file-explorer.noFiles' | i18n }}</div>
<div *ngIf="fileNavigator.error" class="tree-view-error">{{fileNavigator.error.message}}</div>

<bl-file-tree-view-row *ngFor="let treeRow of treeRows; let i = index; trackBy: treeRowTrackBy"
id="{{id}}-row-{{i}}"
Expand Down

0 comments on commit a505fdb

Please sign in to comment.