Add aria-level and aria-selected attrs to dropdowns.

This commit is contained in:
Sean Lip
2016-09-19 19:33:35 -07:00
parent f4e316e8a9
commit 270ed961bf
2 changed files with 5 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ blocklyApp.WorkspaceTreeComponent = ng.core
<template ngFor #inputBlock [ngForOf]="block.inputList" #i="index">
<li role="treeitem" [id]="idMap['listItem' + i]" [attr.aria-level]="level + 1" *ngIf="inputBlock.fieldRow.length"
[attr.aria-labelledBy]="generateAriaLabelledByAttr(idMap['fieldLabel' + i])">
<blockly-field *ngFor="#field of inputBlock.fieldRow" [field]="field" [mainFieldId]="idMap['fieldLabel' + i]">
<blockly-field *ngFor="#field of inputBlock.fieldRow" [field]="field" [mainFieldId]="idMap['fieldLabel' + i]"
[level]="level + 2">
</blockly-field>
</li>