From 6a3b1ab409835b21425451a04a8ccb43babdd7ea Mon Sep 17 00:00:00 2001 From: Vrinda Tokekar Date: Thu, 5 Dec 2024 00:13:58 +0530 Subject: [PATCH] fix: icon aria-hidden value fix --- components/lib/iconbase/IconBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/iconbase/IconBase.js b/components/lib/iconbase/IconBase.js index 0b42a0456e..0308396fc5 100644 --- a/components/lib/iconbase/IconBase.js +++ b/components/lib/iconbase/IconBase.js @@ -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);