Alert
Avviso
Un avviso è un messaggio breve e importante che viene annunciato senza spostare il focus della tastiera. Non chiede all'utente di rispondere subito.
The workspace could not reach the server. Keep editing or retry when the connection returns.
Un esempio vero
Un salvataggio in background fallisce mentre l'utente continua a digitare in un editor. Un avviso dice che le modifiche non sono state salvate e mostra come recuperarle. Se l'utente deve fermarsi e scegliere una risposta, usa invece una finestra di dialogo di avviso.
Parti principali
- 01messaggio importante
- 02annuncio in diretta
- 03Percorso di recupero
Usalo quando
Usa questo termine per stato importante e sensibile al tempo che dovrebbe essere annunciato senza togliere l'attenzione.
Non usarlo quando
Non usare alert per aggiornamenti normali, messaggi vecchi o contenuti già presenti nella pagina al caricamento.
Nome usato nel codice
role=alert / aria-live=assertive Prima di spedire
Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states.
Outcome: Complete the task with Avviso (Alert). User context: Un salvataggio in background fallisce mentre l'utente continua a digitare in un editor. Un avviso dice che le modifiche non sono state salvate e mostra come recuperarle. Se l'utente deve fermarsi e scegliere una risposta, usa invece una finestra di dialogo di avviso. Recommended pattern: Avviso (Alert). Why it fits: Usa questo termine per stato importante e sensibile al tempo che dovrebbe essere annunciato senza togliere l'attenzione. Do not use it when: Non usare alert per aggiornamenti normali, messaggi vecchi o contenuti già presenti nella pagina al caricamento. 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 Avviso (Alert) is used now. Definition: Un avviso è un messaggio breve e importante che viene annunciato senza spostare il focus della tastiera. Non chiede all'utente di rispondere subito. Release checks: Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.