This repository was archived by the owner on Jan 13, 2025. It is now read-only.
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Snackbar: Accessibility #4063
Closed
Description
In scope
- Announce label text to screen reader users
- Use a "polite" live region to avoid interrupting the user's work
- Hide from accessibility tree while closed
- Determine whether to use
display: none
oraria-hidden="true"
- Determine whether to use
- Prevent focus while closed
- Dedicated "X" icon to dismiss
If a snackbar gets "stuck", the user needs a way to manually dismiss it. See Snackbar action handler text not appearing #3981.
Out of scope
- Indefinite timeouts
- Disabling timeouts for assistive technology users (not possible on the Web)
- Exposing action buttons to assistive technology users
- Focus management
- See ARIA
role="alert"
best practices for rationale
- See ARIA
- Keyboard shortcuts (mnemonics) to focus or dismiss the snackbar
- Gestures (e.g., swipe down to dismiss)
Metadata
Metadata
Assignees
Labels
No labels