Skip to content

Commit

Permalink
fix: icon aria-hidden value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDevNinja committed Dec 4, 2024
1 parent 4cdb3c4 commit 6a3b1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/iconbase/IconBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const IconBase = {
),
role: !isLabelEmpty ? 'img' : undefined,
'aria-label': !isLabelEmpty ? props.label : undefined,
'aria-hidden': isLabelEmpty
'aria-hidden': props.label ? isLabelEmpty : undefined
};

return ObjectUtils.getMergedProps(otherProps, ptiProps);
Expand Down

0 comments on commit 6a3b1ab

Please sign in to comment.