openui / openui/open-ui

[toolbar] Should radio inputs behave differently inside of a toolbar?

Open
#1,414 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

toolbar
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

Pre-amble: Yes I know APG is not a spec but the aria specification is a bit lacking on details around focus management aside from explaining how activedescendant works.

In the APG radio pattern and also mentioned in passing on the MDN page for the radiogroup role there's mention that radiogroups inside of a toolbar should behave specially.

Specifically they seem to imply that radiogroups inside of a toolbar should NOT have selection follow focus.

  1. Is this correct (the logic makes sense)?
  2. Should we do something special here in the toolbar implementation for radio inputs?
  3. If so what should we do?

I guess the same maybe applies to focusgroup but perhaps is too heavy handed for focusgroup. Though this does seem like a tricky thing to implement manually because you don't know if you're inside of a toolbar role or not easily.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the APG radio pattern and MDN radiogroup keyboard-interaction guidance linked in the issue with the current toolbar and focusgroup behavior. Determine whether toolbar-contained radio groups should suppress selection-on-focus and whether that applies to focusgroup; done means reaching a documented behavior decision and defining the required implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
accessibility
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.