Feedback and dialogs
Confirm finished work in a status message and keep errors where they need fixing. Place focus with care, and let people undo what they delete.
- Required 2
- Recommended 4
Required
Put focus somewhere sensible after a view changes
APP-42After a client-side route change, move focus to the new page's heading and update the title. When the focused element disappears, move focus to a nearby item or the control that opened it. Keep focus in place for status changes.
Let people undo or confirm destructive actions
APP-44For deletes and other changes that lose data, offer undo when the change can be reversed, and ask for confirmation when it can't. Name the object and the count in both.
Recommended
Use toasts only to confirm finished work
APP-40Use a toast only to confirm that something worked, such as "Invoice sent". Announce it through a live region, keep it for at least 6 seconds, and pause it while hovered or focused.
Keep errors that need action on screen
APP-41Show an error that people must act on next to its cause, and keep it until it is fixed. Never put it only in a toast that disappears.
Keep dialogs for short tasks
APP-43Use a modal dialog only for a short task that must finish before anything else, such as a confirmation. Give longer tasks their own page with its own address.
Show progress for long actions
APP-45When an action takes longer than 10 seconds, run it in the background, show its progress, and let people leave the screen. Tell them when it is done.
Read this with
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/app-ui/feedback-and-dialogs">Agent Wranglers web app interface playbook</a>. In code you write, add a comment next to it with the same link.