Roving tabindex
Indice tab mobile
L'indice tab mobile fornisce un punto Tab a un gruppo. I tasti freccia spostano quindi il focus tra gli elementi all'interno del gruppo.
one tabindex=0 + remaining tabindex=-1 + arrow key swaps the active itemtabindex=0Corsivo-1Link-1Citazione-1focus() + swap tabindexone tabindex=0 + remaining tabindex=-1 + arrow key swaps the active itemA11YUn altro esempio
Una barra degli strumenti inizia con Grassetto al tabindex 0. Gli altri pulsanti usano -1. Freccia destra sposta 0 su Corsivo.
Parti principali
- 01widget composito
- 02Singolo tabulatore
- 03Elementi inattivi
- 04Regola del tasto freccia
- 05Voce attiva aggiornata
- 06Uscita scheda
Usalo quando
Usalo per widget compositi con comportamento dei tasti freccia documentato. Mantieni esattamente un elemento nell'ordine normale del Tab.
Non usarlo quando
Non usarlo per link non correlati o per l'intera pagina. Non lasciare due elementi con tabindex 0.
Nome usato nel codice
one tabindex=0 + remaining tabindex=-1 + arrow key swaps the active item 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 Indice tab mobile (Roving tabindex). User context: Una barra degli strumenti inizia con Grassetto al tabindex 0. Gli altri pulsanti usano -1. Freccia destra sposta 0 su Corsivo. Recommended pattern: Indice tab mobile (Roving tabindex). Why it fits: Usalo per widget compositi con comportamento dei tasti freccia documentato. Mantieni esattamente un elemento nell'ordine normale del Tab. Do not use it when: Non usarlo per link non correlati o per l'intera pagina. Non lasciare due elementi con tabindex 0. 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 Indice tab mobile (Roving tabindex) is used now. Definition: L'indice tab mobile fornisce un punto Tab a un gruppo. I tasti freccia spostano quindi il focus tra gli elementi all'interno del gruppo. 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.