Selection
Radio group
A radio group asks for exactly one choice from two to five options that stay in view, such as when a reminder should go off.
In kanso-ui as RadioGroup
Accessibility
- Role and name: native radios sharing one
name, in a<fieldset>whose<legend>names the group; each<label>names its option. - Keyboard: Tab enters the group on the chosen option and leaves in one stop. The arrow keys move and choose at once, skipping disabled options; Space chooses the focused one.
- Disabled: tie the reason to the radio with
aria-describedby. - Targets: the whole label row, at least 48px (
size-control-lg). - Contrast (light, dark): ring
outlineonpaper3.3 and 5.6:1; dot and chosen ringinkonsurface17.4 and 14.4:1; labelinkonpaper16.7 and 15.9:1; detailink-mutedonpaper6.4 and 8.9:1; focus ring 7.3 and 9.0:1. - Motion: none.