Skip to content

Commit

Permalink
fix(a11y): Selection tool: Better use of ARIA for selection group
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator committed Feb 4, 2025
1 parent ffa1ca7 commit 56975a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/js-draw/src/tools/SelectionTool/SelectionTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,8 @@ export default class SelectionTool extends BaseTool {

if (enabled) {
this.handleOverlay.tabIndex = 0;
this.handleOverlay.setAttribute(
'aria-label',
this.editor.localization.selectionToolKeyboardShortcuts,
);
this.handleOverlay.role = 'group';
this.handleOverlay.ariaLabel = this.editor.localization.selectionToolKeyboardShortcuts;
} else {
this.handleOverlay.tabIndex = -1;
}
Expand Down

0 comments on commit 56975a1

Please sign in to comment.