Accessibility Warning: Blocked `aria-hidden` on an element because its descendant retained focus
Modal closed or opened while a focused element remained inside an `aria-hidden="true"` container.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Accessibility Warning
Platform: Web
Common Root Causes:
- Modal closed or opened while a focused element remained inside an `aria-hidden="true"` container.
Interactive Diagnostic Checklist
Verified Solutions:
- Use the native `inert` attribute or `<dialog>.showModal()` and move focus before hiding.
Safe Diagnostic Command:
Inspect `document.activeElement` during modal transitions
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Modal closed or opened while a focused element remained inside an `aria-hidden="true"` container. Recommended diagnostic: `Inspect `document.activeElement` during modal transitions`. Remediation: Use the native `inert` attribute or `<dialog>.showModal()` and move focus before hiding.
Worked Examples
- Run `Inspect `document.activeElement` during modal transitions` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-web-aria-hidden-focusable-descendant · Independently verified: 2026-11-25