Skip to content

Commit

Permalink
fix: add aria-hidden attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
abdmmar committed Dec 18, 2021
1 parent 3f152dd commit 8c26534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/wc-toast-close-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class WCToastCloseButton extends HTMLElement {
}
</style>
<svg
focusable="false"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
stroke="currentColor"
Expand Down
2 changes: 1 addition & 1 deletion src/wc-toast-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class WCToastIcon extends HTMLElement {

this.icon =
this.icon != null ? this.createIcon(this.type, this.icon) : this.createIcon(this.type);

this.setAttribute('aria-hidden', 'true');
this.shadowRoot.appendChild(this.icon);
}

Expand Down

0 comments on commit 8c26534

Please sign in to comment.