Skip to content

Commit ad514ce

Browse files
author
Stanislav Germanovskii
authored
Merge pull request #348 from karszawa/role-complementary-to-root-svg
style(runtime): set aria-hidden to true to the splite for the accessi…
2 parents e620de0 + a2047cb commit ad514ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

runtime/browser-sprite.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ let sprite;
1111
if (isSpriteExists) {
1212
sprite = window[spriteGlobalVarName];
1313
} else {
14-
sprite = new BrowserSprite({ attrs: { id: spriteNodeId } });
14+
sprite = new BrowserSprite({
15+
attrs: {
16+
id: spriteNodeId,
17+
'aria-hidden': 'true'
18+
}
19+
});
1520
window[spriteGlobalVarName] = sprite;
1621
}
1722

0 commit comments

Comments
 (0)