Radio

Sélection mutuellement exclusive — exactement un choix. Forme ronde (NN/g) : le carré signale une checkbox. Toujours dans un <agtc-radio-group> qui gère l'exclusivité, le focus roving et la navigation aux flèches. Mutually exclusive selection — exactly one choice. Round shape (NN/g): square signals a checkbox. Always inside an <agtc-radio-group> handling exclusivity, roving focus, and arrow navigation.

ÉtatsStates

Groupe « Formule »"Plan" group
Gratuit Pro Équipe (bientôt)Team (soon)

Navigation clavierKeyboard navigation

ToucheKeyAction
TabEntre/sort du groupe (focus roving)Enter/leave the group (roving focus)
/ Option suivante (sélectionne, boucle)Next option (selects, wraps)
/ Option précédente (sélectionne, boucle)Previous option (selects, wraps)
EspaceSélectionne l'option focalisée (Entrée réservé à la soumission)Selects the focused option (Enter reserved for submission)

Règles absoluesAbsolute rules

Tokens de composantComponent tokens

Token CSSRéférence sémantiqueSemantic referenceValeur résolueResolved value
--agtc-radio-default-backgroundsemantic.color.background.surface#ffffff
--agtc-radio-default-bordersemantic.color.border.default#e8e8e8
--agtc-radio-default-border-hoversemantic.color.action.primary#007a68
--agtc-radio-default-border-focussemantic.color.border.focus#007a68
--agtc-radio-default-fillsemantic.color.action.primary#007a68
--agtc-radio-default-labelsemantic.color.text.primary#202020

ImplémentationImplementation

<agtc-radio-group name="plan" value="pro" label="FormulePlan">
  <agtc-radio value="free">GratuitFree</agtc-radio>
  <agtc-radio value="pro">Pro</agtc-radio>
  <agtc-radio value="team">ÉquipeTeam</agtc-radio>
</agtc-radio-group>

UX Patterns Reference

Patterns approved by the Design System Lead via the ux-pattern-review workflow (see .claude/rules/ux-patterns-sources.md and ADR-036). Decision: all approved.

PatternSourceAppliedJustification
Round shape (square = checkbox)NN/g — checkboxes vs radioborder-radius: 9999px
Mutually exclusive selection (exactly 1)NN/gGroup manages exclusivity
Pre-select a sensible default (except exceptions)NN/g — radio default selectionGroup value — usage guidance
Vertical stacking, one option per rowNN/gLayout recommendation
Clickable label (dot or text) — FittsNN/g · IxDFThe whole option is clickable
Touch target ≥ 24×24pxIxDFmin-height: 24px (WCAG 2.5.8)
Arrow navigation = selection (native radio)NN/gManaged by the group (WAI-ARIA radiogroup)
Complete visible statesNN/gdefault/hover/focus/selected/disabled
Contribuer à ce projet Contribute to this project

Ce système est ouvert aux contributions — tokens, composants, décisions architecturales, corrections d'accessibilité ou documentation. Toute amélioration est bienvenue. This system welcomes contributions — tokens, components, architectural decisions, accessibility fixes, or documentation. Every improvement counts.

Voir sur GitHub View on GitHub