Skip to content

Commit 32eeb07

Browse files
authored
Merge pull request #20050 from ViniciusCestarii/aria-role
feat: add role region to div tag when aria: true
2 parents 40c2870 + 64539fe commit 32eeb07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/visual/aria.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export default function ariaVisual(ecModel: GlobalModel, api: ExtensionAPI) {
153153
return;
154154
}
155155

156+
dom.setAttribute('role', 'img');
157+
156158
if (labelModel.get('description')) {
157159
dom.setAttribute('aria-label', labelModel.get('description'));
158160
return;

0 commit comments

Comments
 (0)