Resonance Logo

Alert

An inline notification that announces important information automatically via a live region, without requiring user interaction.

Demo

Trigger an alert using the available controls. Observe how the message appears visually and listen for how a screen reader announces it without any focus change or user action required.

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Live Region Container — the element with a live region role that is present in the DOM before any content is injected, allowing the browser to detect subsequent changes
  2. Message Text — the content injected into the live region that will be announced by assistive technology
  3. Status Icon — an optional visual icon indicating alert type (informational, success, warning, error); decorative icons should be hidden from assistive technology
  4. Dismiss Button — an optional interactive control to close the alert, which must have an accessible name

Accessibility Behavior

Common Mistakes

Why This Matters

Alerts are one of the most commonly misimplemented patterns in web interfaces. When the live region is injected at the same time as its content, screen readers often fail to announce anything — leaving blind and low-vision users completely unaware of critical status messages. Using an assertive live region inappropriately can interrupt users mid-task. Relying on color alone to convey alert type excludes users with color vision deficiencies. A correctly implemented alert reaches all users, regardless of how they access the page.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation