Skip to content

Commit

Permalink
Merge pull request #773 from buildo/fix-checkbox-aria
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro authored Sep 20, 2023
2 parents 9a1a505 + 15c66a6 commit 205860e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Box
Expand Down

0 comments on commit 205860e

Please sign in to comment.