Skip to content

Commit 66648f1

Browse files
authored
refactor: set an explicit value for aria-hidden (#7182)
1 parent 3b2e248 commit 66648f1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/main/src/components/FilterGroupItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const FilterGroupItem = forwardRef<HTMLDivElement, FilterGroupItemPropTypes & Fi
259259
)}
260260
{active && (
261261
<>
262-
<Icon name={circleTask2Icon} className={classNames.dialogActiveIcon} aria-hidden />
262+
<Icon name={circleTask2Icon} className={classNames.dialogActiveIcon} aria-hidden="true" />
263263
<span className={classNames.pseudoInvisibleText}>{i18nBundle.getText(FILTER_IS_ACTIVE)}</span>
264264
</>
265265
)}

packages/main/src/components/ObjectPage/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,13 @@ const ObjectPage = forwardRef<ObjectPageDomRef, ObjectPagePropTypes>((props, ref
717717
? `${headerContentHeight}px`
718718
: 0
719719
}}
720-
aria-hidden
720+
aria-hidden="true"
721721
/>
722722
{placeholder ? placeholder : sections}
723-
<div style={{ height: `${sectionSpacer}px` }} aria-hidden />
723+
<div style={{ height: `${sectionSpacer}px` }} aria-hidden="true" />
724724
</div>
725725
{footerArea && mode === ObjectPageMode.IconTabBar && !sectionSpacer && (
726-
<div className={classNames.footerSpacer} data-component-name="ObjectPageFooterSpacer" aria-hidden />
726+
<div className={classNames.footerSpacer} data-component-name="ObjectPageFooterSpacer" aria-hidden="true" />
727727
)}
728728
{footerArea && (
729729
<footer

packages/main/src/components/ObjectPageTitle/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const ObjectPageTitle = forwardRef<HTMLDivElement, ObjectPageTitlePropTypes>((pr
175175
<div
176176
className={classNames.actionsSeparator}
177177
data-component-name="ObjectPageTitleActionsSeparator"
178-
aria-hidden
178+
aria-hidden="true"
179179
/>
180180
)}
181181
{!showNavigationInTopArea && (wcrNavToolbar ? wcrNavToolbar : navigationBar)}

packages/main/src/components/ObjectStatus/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const ObjectStatus = forwardRef<HTMLDivElement | HTMLButtonElement, ObjectStatus
200200
const showEmptyIndicator = emptyIndicator && !children;
201201
const computedChildren = showEmptyIndicator ? (
202202
<span
203-
aria-hidden={showEmptyIndicator}
203+
aria-hidden={showEmptyIndicator ? 'true' : undefined}
204204
data-component-name="ObjectStatusEmptyIndicator"
205205
className={classNames.emptyIndicator}
206206
>

0 commit comments

Comments
 (0)