Radio Group
Gruppo Radio
Un gruppo di opzioni mostra diverse scelte ma permette di selezionarne solo una.
Un esempio vero
Per la consegna, le scelte sono standard, espresso, o ritiro, e solo una può essere attiva.
Parti principali
- 01Etichetta visibile
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Usalo quando
Usalo quando ci sono solo poche opzioni e vederle tutte aiuta le persone a decidere.
Non usarlo quando
Non usarlo mai per una lista lunga o quando spesso è permesso non scegliere nulla.
Nome usato nel codice
<fieldset><input type="radio"> Prima di spedire
Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery.
Outcome: Complete the task with Gruppo Radio (Radio Group). User context: Per la consegna, le scelte sono standard, espresso, o ritiro, e solo una può essere attiva. Recommended pattern: Gruppo Radio (Radio Group). Why it fits: Usalo quando ci sono solo poche opzioni e vederle tutte aiuta le persone a decidere. Do not use it when: Non usarlo mai per una lista lunga o quando spesso è permesso non scegliere nulla. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): Lo standard copre solo l'ambito elencato. Non sceglie lo stile visivo, la decisione sul prodotto o l'esempio di vocabolario. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Gruppo Radio (Radio Group) is used now. Definition: Un gruppo di opzioni mostra diverse scelte ma permette di selezionarne solo una. Release checks: Give assistive tools the control’s name (accessible name), purpose (role), value, and state. Check keyboard use, visible focus, target size, disabled and busy states, feedback, and recovery. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.