Set active descendant correctly for toolbox tree. Change roles to 'tree' where appropriate.

This commit is contained in:
Sean Lip
2016-07-14 11:50:05 -07:00
parent 7a92facc3a
commit 85f2ae8761
2 changed files with 13 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ blocklyApp.WorkspaceComponent = ng.core
<div *ngIf="workspace">
<ol #tree *ngFor="#block of workspace.topBlocks_; #i = index"
tabIndex="0" role="group" class="blocklyTree blocklyWorkspaceTree"
tabIndex="0" role="tree" class="blocklyTree blocklyWorkspaceTree"
[attr.aria-activedescendant]="getActiveDescId(tree.id)"
[attr.aria-labelledby]="workspaceTitle.id"
(keydown)="onKeypress($event, tree)">