Skip to content

Commit 9d85f9b

Browse files
authored
fix: Use button as the aria-role for icons. (#9408)
1 parent b74ebe2 commit 9d85f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/icons/icon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export abstract class Icon implements IIcon {
7474
(this.svgRoot as any).tooltip = this;
7575
tooltip.bindMouseEvents(this.svgRoot);
7676

77-
aria.setRole(this.svgRoot, aria.Role.FIGURE);
77+
aria.setRole(this.svgRoot, aria.Role.BUTTON);
7878
aria.setState(this.svgRoot, aria.State.LABEL, 'Icon');
7979
}
8080

0 commit comments

Comments
 (0)