Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept tabIndex on <RadioGroup> component #3646

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

RobinMalfait
Copy link
Member

This PR allows you to pass a tabIndex to the <RadioGroup> component and it will internally pass it down to the correct <Radio /> or <RadioGroupOption> component.

The reason we do it this way is because only a single radio should be focusable (moving between radios can be done via the arrow keys instead of the tab key).

This will pass it down to the correct `<Radio />` or
`<RadioGroupOption>` component.
Copy link

vercel bot commented Feb 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 3:27pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 3:27pm

@RobinMalfait RobinMalfait enabled auto-merge (squash) February 21, 2025 15:27
@RobinMalfait RobinMalfait merged commit 20f46dd into main Feb 21, 2025
8 checks passed
@RobinMalfait RobinMalfait deleted the feat/allow-tab-index-on-radio-group branch February 21, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant