From d397fe7d3de9bbe5b4a19e9442f2316e864ab9ad Mon Sep 17 00:00:00 2001 From: "tom.davies" Date: Thu, 7 Nov 2024 13:02:42 +0000 Subject: [PATCH] fix: remove aria-checked from checkbox/radio inputs fix #7047 --- .../checkable-input/hidden-checkable-input.component.tsx | 1 - .../simple-color-picker/simple-color/simple-color.component.tsx | 1 - src/components/tile-select/tile-select.component.tsx | 1 - 3 files changed, 3 deletions(-) diff --git a/src/__internal__/checkable-input/hidden-checkable-input.component.tsx b/src/__internal__/checkable-input/hidden-checkable-input.component.tsx index 57693b660d..8be81f7465 100644 --- a/src/__internal__/checkable-input/hidden-checkable-input.component.tsx +++ b/src/__internal__/checkable-input/hidden-checkable-input.component.tsx @@ -120,7 +120,6 @@ const HiddenCheckableInput = React.forwardRef( aria-labelledby={ariaLabelledBy} autoFocus={autoFocus} data-has-autofocus={autoFocus ? true : undefined} - aria-checked={checked} checked={checked} name={name} role={role || type} diff --git a/src/components/simple-color-picker/simple-color/simple-color.component.tsx b/src/components/simple-color-picker/simple-color/simple-color.component.tsx index 49fd323e10..f0ade8c113 100644 --- a/src/components/simple-color-picker/simple-color/simple-color.component.tsx +++ b/src/components/simple-color-picker/simple-color/simple-color.component.tsx @@ -63,7 +63,6 @@ export const SimpleColor = React.forwardRef( type="radio" role="radio" value={value} - aria-checked={checked} ref={ref} id={inputId} defaultChecked={defaultChecked} diff --git a/src/components/tile-select/tile-select.component.tsx b/src/components/tile-select/tile-select.component.tsx index 059f3d3f11..0e63a75fb7 100644 --- a/src/components/tile-select/tile-select.component.tsx +++ b/src/components/tile-select/tile-select.component.tsx @@ -184,7 +184,6 @@ const TileSelect = React.forwardRef( type={type} value={value} disabled={disabled} - aria-checked={checked} id={id} ref={ref} {...rest}