From 41ebe00f1ef42971decd517369e4ad8638048a3f Mon Sep 17 00:00:00 2001 From: "noa.santo" Date: Thu, 19 Sep 2024 16:21:52 +0200 Subject: [PATCH] fix (a11y): aria-hide checkmark svg --- src/components/forms/checkbox/checkbox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/forms/checkbox/checkbox.tsx b/src/components/forms/checkbox/checkbox.tsx index 3694f9b3e..62645d417 100644 --- a/src/components/forms/checkbox/checkbox.tsx +++ b/src/components/forms/checkbox/checkbox.tsx @@ -49,7 +49,7 @@ const StyledCheckbox = styled.input.attrs({ } `; -const StyledIcon = styled(Icon)` +const StyledIcon = styled(Icon).attrs({ ariaHidden: true })` position: absolute; pointer-events: none; `;