Skip to content

Commit 9f6edfc

Browse files
authored
Merge pull request #1933 from SUI-Components/add-role-presentation
feat(packages/sui-svg): add role presentation to decorative svgs
2 parents 92a7d55 + c711910 commit 9f6edfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sui-svg/templates/icon-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const template = content => {
33
import AtomIcon from '@s-ui/react-atom-icon'
44
55
const injectAccessibility = ({id, svg, title}) => {
6-
if (!title || !id) return svg.replace(/<svg([^>]*)>/, '<svg$1 aria-hidden="true">')
6+
if (!title || !id) return svg.replace(/<svg([^>]*)>/, '<svg$1 aria-hidden="true" role="presentation">')
77
88
return svg.replace(
99
/<svg([^>]*)>/,

0 commit comments

Comments
 (0)