Menu
Menù
Un menu dei comandi è un gruppo di azioni o scelte con regole speciali per il focus della tastiera. Solitamente si apre da un pulsante o da un'altra area dei comandi.
Un esempio vero
Un menu contiene Rinomina, Duplica e Archivia. Il focus inizia sul primo elemento, i tasti freccia si muovono, Invio esegue un’azione e Esc restituisce il focus. I normali collegamenti del sito web dovrebbero generalmente mantenere il normale comportamento della tastiera dei link.
Parti principali
- 01contenitore del menu
- 02voci di menu
- 03focus mobile
Usalo quando
Usa questo termine per un piccolo gruppo di comandi dell'app che necessita di un comportamento da tastiera in stile menu.
Non usarlo quando
Non aggiungere role=menu a una normale lista di link, a un controllo select o a contenuti da mostrare e nascondere.
Nome usato nel codice
role=menu → role=menuitem Prima di spedire
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome: Complete the task with Menù (Menu). User context: Un menu contiene Rinomina, Duplica e Archivia. Il focus inizia sul primo elemento, i tasti freccia si muovono, Invio esegue un’azione e Esc restituisce il focus. I normali collegamenti del sito web dovrebbero generalmente mantenere il normale comportamento della tastiera dei link. Recommended pattern: Menù (Menu). Why it fits: Usa questo termine per un piccolo gruppo di comandi dell'app che necessita di un comportamento da tastiera in stile menu. Do not use it when: Non aggiungere role=menu a una normale lista di link, a un controllo select o a contenuti da mostrare e nascondere. 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): È ufficiale per quella fonte. Altre piattaforme o team potrebbero usare il termine in modo diverso. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Menù (Menu) is used now. Definition: Un menu dei comandi è un gruppo di azioni o scelte con regole speciali per il focus della tastiera. Solitamente si apre da un pulsante o da un'altra area dei comandi. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.