jeffreytse/grimoire-core/apply-aria-live-regions
Claude Code and agent skill by jeffreytse/grimoire-core
- community
Checking that the SKILL.md file is still in the repository.
Use when adding dynamic content that changes without a user-triggered focus move — toast notifications, search results loading, form submission status, chat messages, or any async UI update — so screen reader users are informed of the change.
Install
npx vskill@latest install jeffreytse/grimoire-core/apply-aria-live-regionsSKILL.md
The same SKILL.md was published earlier as jeffreytse/grimoire-core/apply-aria-live-regions.
Apply ARIA Live Regions
Announce dynamic content changes to screen readers using aria-live regions or semantic live region roles — without moving focus.
Why This Is Best Practice
Adopted by: WCAG 2.1 SC 4.1.3 (Level AA) is required by Section 508 (US), EU EN 301 549, and UK PSBAR 2018. WAI-ARIA 1.2 live region support is implemented in all major screen readers (NVDA, JAWS, VoiceOver, TalkBack) since 2018. All major front-end frameworks (React, Angular, Vue) have accessibility guidance on live regions for dynamic content. Impact: Deque Systems research found that missing live region announcements are the
#2 source of screen reader usability failures in single-page applications, after focus management. A screen reader user who submits a form and hears nothing cannot know if the submission succeeded, failed, or is loading — without a live region announcement, they must explore the page manually to find out. Why best: The alternative — moving focus to the new content — is disruptive for minor status updates (toast notifications, inline search suggestions). Live regions allow content to be announced without stealing focus, preserving the user's context and interaction flow.
Sources: W3C WCAG 2.1 SC 4.1.3 (2018); WAI-ARIA 1.2 Live Region specification; Deque University; MDN ARIA live regions
Steps
Step 1: Choose the right live region role for the urgency level
| Role / attribute | Urgency | Interrupts? | Use for | |
|---|---|---|---|---|
role="status" / aria-live="polite" | Low | No — waits for user to finish | Success messages, loading complete, search result count | |
role="alert" / aria-live="assertive" | High | Yes — announces immediately | Errors, warnings, time-sensitive messages | |
role="log" | Low | No | Chat history, activity feeds | |
role="timer" | Low | No | Countdown timers | |
aria-live="off" | None | No | Disable announcements on a region |
Use polite by default. Only use assertive for critical errors or urgent warnings — interrupting a screen reader user mid-sentence is disruptive.
Step 2: Place the live region in the DOM before content is injected
The live region container must be present in the DOM before the announcement. Dynamically creating the element and adding content simultaneously is unreliable.
Step 3: Use aria-atomic to control how changes are announced
For status messages with a single changing value (result count, progress), use aria-atomic="true". For append-only logs (chat, notifications), use the default aria-atomic="false".
Step 4: Common live region patterns
Toast notification:
Loading state:
Search result count:
Step 5: Test announcements with a real screen reader
- Enable NVDA (Windows) or VoiceOver (macOS/iOS)
- Trigger the dynamic update
- Verify the announcement is made without focus moving
- Verify
assertiveannouncements interrupt current speech - Verify
politeannouncements wait for a speech pause
When NOT to Use
- Content that takes focus anyway — if the user action opens a modal or navigates to a new page, focus management handles the announcement. No live region needed.
- Every change in the DOM — overusing
aria-livecreates announcement noise. Only announce changes users need to know about without actively exploring the page.
Common Mistakes
Adding `role="alert"` to an element and content simultaneously. Some screen readers don't catch this. Pre-render the live region; inject content after.
Using `aria-live="assertive"` for non-urgent messages. Assertive interrupts whatever the screen reader is saying. Use polite for success messages, counts, loading states.
Clearing live region content immediately. If you clear and refill the region in the same tick, some screen readers announce nothing. Use requestAnimationFrame or a brief setTimeout between clear and fill.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/design/ui-ux/skills/apply-aria-live-regions/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jeffreytse/grimoire-core/apply-aria-live-regions)