Bug 1438837 - fix VirtualizedTree node aria-level attribute to start with 1 not 0. r=nchevobbe

MozReview-Commit-ID: KLb964Irdkd
This commit is contained in:
Yura Zenevich
2018-02-23 14:41:19 -05:00
parent dfdcb5ef45
commit afa52a72f9
2 changed files with 4 additions and 2 deletions

View File

@@ -811,7 +811,7 @@ class TreeNodeClass extends Component {
id: this.props.id,
className: classList.join(" "),
role: "treeitem",
"aria-level": this.props.depth,
"aria-level": this.props.depth + 1,
onClick: this.props.onClick,
"aria-expanded": ariaExpanded,
"data-expanded": this.props.expanded ? "" : undefined,