NcRadioGroup: radio buttons don't share a name (no arrow-key navigation)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
- Domain
- accessibility, frontend
Research direction
Start with src/components/NcRadioGroupButton/NcRadioGroupButton.vue and useNcRadioGroup.ts to trace how the group context reaches each input. Check the existing radio group tests and add coverage for a shared input name and arrow-key navigation. Done when the options behave as one keyboard-navigable radio group.
Written by the indexing model from the issue text.
Description
Describe the bug
The radio inputs rendered by NcRadioGroupButton inside an NcRadioGroup don't share a name attribute:
Without a common name, browsers don't treat them as one radio group: every option is a separate tab stop and arrow-key navigation between the options doesn't work. There is also no prop to set it, and a name attribute passed by the consumer ends up on the wrapper element, not on the input.
Originally reported in nextcloud/server#58729 (the "Default view" radios in the Files settings); the server can't fix this on its side (see nextcloud/server#58752).
To Reproduce
- Open a component using
NcRadioGroupwithNcRadioGroupButtons (e.g. Files settings → General → Default view). - Tab into the group and press the arrow keys.
- The selection doesn't move, and Tab stops at every option.
Expected behavior
All buttons of a group get the same name, e.g. NcRadioGroup generates one with useId() (optionally overridable by a name prop) and provides it through the radio group context (useNcRadioGroup.ts), and NcRadioGroupButton binds it on its <input>. Covered by a test checking the shared name and arrow-key behaviour.
- Dominant language
- Vue
- Stars
- 246
- Forks
- 104
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 79
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud-libraries/nextcloud-vue
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud-libraries/nextcloud-vue#9280 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nextcloud-libraries/nextcloud-vue#9279 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextcloud-libraries/nextcloud-vue#9277 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
nextcloud-libraries/nextcloud-vue#9275 ·
Maintainers usually reply within 1 day
-
design
Difficulty 1/5 Under an hour Newbie friendliness 92/100
nextcloud-libraries/nextcloud-vue#9271 ·
Maintainers usually reply within 1 day
All issues in nextcloud-libraries/nextcloud-vue
Similar issues
-
Follow-ups from #312Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
janhesters/remixcn#318 ·
Maintainers usually reply within 1 day
-
NP OSS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
siteboon/claudecodeui#1905 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Editor: leave an uploaded or inserted image's alt text empty, so the preview asks for a descriptionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Multi-select question chips show no picked state; on touch the last tap looks like the only pickOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eliasstravik/herdr-projects#1710 · 1 comment ·
-
bug good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 96/100