Skip to content

Commit

Permalink
Merge pull request #890 from MyPureCloud/feature/COMUI-3359
Browse files Browse the repository at this point in the history
fix(icon): added img role to svg
  • Loading branch information
daragh-king-genesys authored Feb 13, 2025
2 parents da2643d + b9ca988 commit 24c67b3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export class GuxIcon {
private getSvgWithAriaAttributes(svgText: string): string {
const svgElement = new DOMParser().parseFromString(svgText, 'image/svg+xml')
.firstChild as SVGElement;
svgElement.setAttribute('role', 'img');

if (this.decorative) {
svgElement.setAttribute('aria-hidden', String(this.decorative));
} else {
Expand Down

0 comments on commit 24c67b3

Please sign in to comment.