From b996372994b145941cfafcf8d58b5d82d3197e77 Mon Sep 17 00:00:00 2001 From: Markus Bordihn Date: Wed, 3 May 2023 19:39:31 +0200 Subject: [PATCH] Update category.ts to produce valid "aria-level" attributes to fix #7027 (#7033) --- core/toolbox/category.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/toolbox/category.ts b/core/toolbox/category.ts index 16f814f26..b4461b645 100644 --- a/core/toolbox/category.ts +++ b/core/toolbox/category.ts @@ -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';