Update category.ts to produce valid "aria-level" attributes to fix #7027 (#7033)

This commit is contained in:
Markus Bordihn
2023-05-03 19:39:31 +02:00
committed by GitHub
parent fea91af90e
commit b996372994

View File

@@ -181,7 +181,7 @@ export class ToolboxCategory extends ToolboxItem implements
this.htmlDiv_ = this.createContainer_();
aria.setRole(this.htmlDiv_, aria.Role.TREEITEM);
aria.setState(this.htmlDiv_, aria.State.SELECTED, false);
aria.setState(this.htmlDiv_, aria.State.LEVEL, this.level_);
aria.setState(this.htmlDiv_, aria.State.LEVEL, this.level_ + 1);
this.rowDiv_ = this.createRowContainer_();
this.rowDiv_.style.pointerEvents = 'auto';