Numeric Stepper (Visual Pattern)
Numeric Stepper (Schema Visivo)
Un numeric stepper mostra un numero che puoi scrivere e dei controlli per aggiungere o sottrarre. Può usare un input numerico nativo o la semantica ARIA spinbutton. I pulsanti più e meno da soli non creano quella semantica.
Un esempio vero
Per la quantità di biglietti, una persona può digitare 4 o premere i controlli più e meno.
Parti principali
- 01Etichetta persistente
- 02Input control
- 03Hint or format
- 04Validation message
Usalo quando
Usa questo modello per una quantità con limiti quando i cambiamenti a passo singolo sono comuni. Costruisci e testa le corrette semantiche di input o spinbutton.
Non usarlo quando
Non considerare mai il suo nome visivo come un ruolo di accessibilità. Evita anche di usarlo per un intervallo ampio che richiederebbe troppe pressioni.
Nome usato nel codice
<input type="number"> 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 Numeric Stepper (Schema Visivo) (Numeric Stepper (Visual Pattern)). User context: Per la quantità di biglietti, una persona può digitare 4 o premere i controlli più e meno. Recommended pattern: Numeric Stepper (Schema Visivo) (Numeric Stepper (Visual Pattern)). Why it fits: Usa questo modello per una quantità con limiti quando i cambiamenti a passo singolo sono comuni. Costruisci e testa le corrette semantiche di input o spinbutton. Do not use it when: Non considerare mai il suo nome visivo come un ruolo di accessibilità. Evita anche di usarlo per un intervallo ampio che richiederebbe troppe pressioni. 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 Numeric Stepper (Schema Visivo) (Numeric Stepper (Visual Pattern)) is used now. Definition: Un numeric stepper mostra un numero che puoi scrivere e dei controlli per aggiungere o sottrarre. Può usare un input numerico nativo o la semantica ARIA spinbutton. I pulsanti più e meno da soli non creano quella semantica. 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.