Fix RadioGroup aria-checked

This commit is contained in:
Mats Bosson 2026-03-29 07:52:49 +07:00
parent c2422d2da0
commit b1f0cd2e9d

View File

@ -23,7 +23,7 @@ export function RadioGroupItem(props: RadioGroupItemProps): JSX.Element {
<button <button
type="button" type="button"
role="radio" role="radio"
aria-checked={isChecked()} aria-checked={isChecked() ? "true" : "false"}
data-state={isChecked() ? "checked" : "unchecked"} data-state={isChecked() ? "checked" : "unchecked"}
disabled={isDisabled()} disabled={isDisabled()}
tabIndex={isChecked() ? 0 : -1} tabIndex={isChecked() ? 0 : -1}