From 15c66a67a362586ea950131db4e257bc96d1ce35 Mon Sep 17 00:00:00 2001 From: Gabriele Petronella Date: Wed, 20 Sep 2023 14:58:54 +0200 Subject: [PATCH] Make sure we're passing aria props to InternalCheckbox --- packages/bento-design-system/src/Checkbox/InternalCheckbox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bento-design-system/src/Checkbox/InternalCheckbox.tsx b/packages/bento-design-system/src/Checkbox/InternalCheckbox.tsx index 0a0d8ed2b..256f7f253 100644 --- a/packages/bento-design-system/src/Checkbox/InternalCheckbox.tsx +++ b/packages/bento-design-system/src/Checkbox/InternalCheckbox.tsx @@ -57,7 +57,7 @@ type Props = { export function InternalCheckbox({ option, inputRef, inputProps }: Props) { const config = useBentoConfig().selectionControl.element; - const { fieldProps, labelProps } = useLabel(option); + const { fieldProps, labelProps } = useLabel({ ...option, ...inputProps }); const { isFocusVisible, focusProps } = useFocusRing({ autoFocus: inputProps.autoFocus }); return (