Skip to content

Commit

Permalink
Add 'presentation' role to icon svg (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Henning <phenning@amplify.com>
  • Loading branch information
pjhenning and Patrick Henning authored Aug 24, 2023
1 parent ef50221 commit c7ae2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class IconView extends CustomElementView {
// a library like Vue.js.
if (this.children.length) return;

const $svg = $N('svg', {viewBox: '0 0 24 24', alt: ''}, this);
const $svg = $N('svg', {viewBox: '0 0 24 24', alt: '', role: 'presentation'}, this);
const $use = $N('use', {}, $svg);

const size = +this.attr('size') || 24;
Expand Down

0 comments on commit c7ae2ad

Please sign in to comment.