How to design
a
dialog modal popover
A
dialog modal popover
must meet WCAG principles:
4
Robust
-
Name, role, state is documented 4.1.2 A
-
Meets criteria across platforms, devices and viewports 4.0.0 AA
A
dialog modal popover
must work for people with disabilities:
✓ Blindness
-
Name and role is documented - 4.1.2 A
-
Meets criteria across platforms, devices and viewports 4.0.0 AA
Usage
A dialog is intended to interrupt people so they can focus on a singular specific task:
- Reading related important content (like “Terms & Conditions”)
- Making a crucial decision (like “Are you sure? Yes/No”)
- Awareness of an important message (like “You will be logged out in 5 minutes”)
What to avoid
- Don’t use dialogs for multi-step processes or wizards unless you have a really compelling business case
- If you’re compelled to do so, ensure progress is saved if the modal is accidentally closed
- Do not put a modal/popup on top of a modal
Working example