chore(radio): aria-labelledby added

This commit is contained in:
Junior Garcia 2023-03-05 17:35:58 -03:00
parent 7bf11ce93c
commit 972a53d615

View File

@ -103,6 +103,7 @@ export function useRadio(props: UseRadioProps) {
isDisabled,
isRequired,
"aria-label": ariaLabel,
"aria-labelledby": otherProps["aria-labelledby"] || ariaLabel,
"aria-describedby": otherProps["aria-describedby"] || ariaDescribedBy,
};
}, [isDisabled, isRequired]);