WCAG 2.1 AA • AODA compliant • Updated 2025-10-28
What is this component? An alert communicates important, time‑sensitive information. Use for validation errors, success confirmations, or system messages.
| Requirement | WCAG Criteria | Description |
|---|---|---|
| Immediate announcement | 4.1.3 (Live regions) | Use role="alert" or aria-live="assertive" for critical messages. |
| Clear text | 3.3.1 | Explain what happened and what the user should do next. |
| Contrast | 1.4.3 | Ensure text/icon contrast meets AA. |
| ARIA Role/Attribute | Used On | Purpose & Usage |
|---|---|---|
role="alert" | Alert container | Announces content immediately. |
aria-live / aria-atomic | Dynamic regions | Controls live announcement behavior. |
Your session is about to expire. Save your work.
| Test Item | WCAG Criteria | Pass Criteria |
|---|---|---|
| Announcement | 4.1.3 | AT announces alert text on injection. |
| Clarity | 3.3.1 | Message explains issue and next steps. |