Select
Seleziona
Una lista di selezione apre un elenco fisso e permette di scegliere un solo valore.
Un esempio vero
Un campo per il Paese mostra un elenco fisso e rifiuta i valori esterni.
Parti principali
- 01Etichetta persistente
- 02Input control
- 03Hint or format
- 04Validation message
Usalo quando
Usalo quando la lista è fissa, non troppo lunga, e la pagina ha poco spazio.
Non usarlo quando
Non usarlo mai per una lista lunga che le persone devono cercare. Usa invece una combobox.
Nome usato nel codice
<select> / role="listbox" Prima di spedire
Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages.
Outcome: Complete the task with Seleziona (Select). User context: Un campo per il Paese mostra un elenco fisso e rifiuta i valori esterni. Recommended pattern: Seleziona (Select). Why it fits: Usalo quando la lista è fissa, non troppo lunga, e la pagina ha poco spazio. Do not use it when: Non usarlo mai per una lista lunga che le persone devono cercare. Usa invece una combobox. 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 Seleziona (Select) is used now. Definition: Una lista di selezione apre un elenco fisso e permette di scegliere un solo valore. Release checks: Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.