Skip to content

Commit 3da0f65

Browse files
authored
Graphite Review: aria-hidden on SVG icons
1 parent 9687961 commit 3da0f65

File tree

1 file changed

+4
-0
lines changed
  • libs/@hashintel/ds-components/src/components/Checkbox

1 file changed

+4
-0
lines changed

libs/@hashintel/ds-components/src/components/Checkbox/checkbox.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { Checkbox as BaseCheckbox } from "@ark-ui/react/checkbox";
22
import { css } from "@hashintel/ds-helpers/css";
33

4+
45
const CHECK_ICON = (
56
<svg
67
width="12"
78
height="12"
89
viewBox="0 0 12 12"
910
fill="none"
1011
xmlns="http://www.w3.org/2000/svg"
12+
aria-hidden="true"
1113
>
1214
<path
1315
d="M10 3L4.5 8.5L2 6"
@@ -26,6 +28,7 @@ const INDETERMINATE_ICON = (
2628
viewBox="0 0 12 12"
2729
fill="none"
2830
xmlns="http://www.w3.org/2000/svg"
31+
aria-hidden="true"
2932
>
3033
<path
3134
d="M3 6H9"
@@ -36,6 +39,7 @@ const INDETERMINATE_ICON = (
3639
</svg>
3740
);
3841

42+
3943
export interface CheckboxProps {
4044
checked?: boolean | "indeterminate";
4145
defaultChecked?: boolean | "indeterminate";

0 commit comments

Comments
 (0)