Segmented Control
Controllo Segmentato
Un controllo segmentato unisce una breve fila di scelte che cambia una modalità, un filtro o un valore.
Un esempio vero
Giorno, Settimana e Mese cambiano l'intervallo del calendario. La scelta corrente rimane segnata.
Parti principali
- 01Etichetta visibile
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Usalo quando
Usalo per due-cinque scelte brevi quando solo una può essere attiva.
Non usarlo quando
Non usarlo mai per cambiare grandi sezioni di contenuto che richiedono la semantica delle schede.
Nome usato nel codice
ToggleGroup / NSSegmentedControl 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 Controllo Segmentato (Segmented Control). User context: Giorno, Settimana e Mese cambiano l'intervallo del calendario. La scelta corrente rimane segnata. Recommended pattern: Controllo Segmentato (Segmented Control). Why it fits: Usalo per due-cinque scelte brevi quando solo una può essere attiva. Do not use it when: Non usarlo mai per cambiare grandi sezioni di contenuto che richiedono la semantica delle schede. 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): Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Controllo Segmentato (Segmented Control) is used now. Definition: Un controllo segmentato unisce una breve fila di scelte che cambia una modalità, un filtro o un valore. 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.