mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
fix: Use button as the aria-role for icons. (#9408)
This commit is contained in:
@@ -74,7 +74,7 @@ export abstract class Icon implements IIcon {
|
||||
(this.svgRoot as any).tooltip = this;
|
||||
tooltip.bindMouseEvents(this.svgRoot);
|
||||
|
||||
aria.setRole(this.svgRoot, aria.Role.FIGURE);
|
||||
aria.setRole(this.svgRoot, aria.Role.BUTTON);
|
||||
aria.setState(this.svgRoot, aria.State.LABEL, 'Icon');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user