Skip to content

Commit

Permalink
Merge pull request #51 from waitingallday/feat/add-aria-hidden
Browse files Browse the repository at this point in the history
feat: add aria-hidden to sprite sheet
  • Loading branch information
jinmao88 authored Mar 6, 2024
2 parents 1bce156 + 74a0a98 commit bb334a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export async function createModuleCode(
svgDom.id = '${options.customDomId}';
svgDom.setAttribute('xmlns','${XMLNS}');
svgDom.setAttribute('xmlns:link','${XMLNS_LINK}');
svgDom.setAttribute('aria-hidden',true);
}
svgDom.innerHTML = ${JSON.stringify(html)};
${domInject(options.inject)}
Expand Down

0 comments on commit bb334a9

Please sign in to comment.