Toast notifications (aria-live) — why this matters

A small UI accessibility note, with an interactive BEFORE/AFTER demo.

“Toast” messages are small temporary notifications like “Saved.” or “Copied to clipboard.” They’re common in games and web apps because they don’t interrupt what you’re doing.

The catch: if a toast is visual-only, a screen reader user might not learn that anything happened. Keyboard focus usually stays on the button you pressed, and the toast may appear somewhere else on screen.

A simple fix: a live region

Put the toast text in a live region so assistive tech can announce it. One common pattern is:

This lets people get confirmation without moving focus or opening a modal dialog. It’s especially helpful for short confirmations: saved, copied, equipped, updated.

Notes

Related: inline errors demo (also uses an aria-live pattern).