Skip to content

Commit

Permalink
fix: icon aria-hidden value fix (#7476)
Browse files Browse the repository at this point in the history
Co-authored-by: Vrinda Tokekar <[email protected]>
  • Loading branch information
tneeraja95 and 0xDevNinja authored Dec 4, 2024
1 parent 4cdb3c4 commit bcb43d0
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 bcb43d0

Please sign in to comment.