ELSEIF
Your brief EB
396 stories from 95 feeds 245 clusters Refreshed 14 minutes ago next pull 15:06

WEB Signal 478

Blocked aria-hidden warning requires focus reordering, not blur or setTimeout workarounds

The blocked aria-hidden console warning signals a real accessibility violation where focus remains inside a hidden region, and the common workarounds silence the warning while leaving screen reader users stranded on body.

WHY IT MATTERS

The browser does not just warn, it overrides your accessibility tree, shipping a different one than your markup specifies. The correct fix is purely a reordering: move focus out of a region before marking it hidden or inert, not after.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

The common fixes, blur(), setTimeout, stripping aria-hidden, and modal={false} on Radix or shadcn, silence the console warning but drop screen reader focus onto body.

02

The correct fix is an order-of-operations change: un-inert the background, move focus to the trigger element, then mark the closing overlay inert.

03

Migrating to the native <dialog> element with .showModal() eliminates this class of bug because the browser manages focus automatically.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
CSS-Tricks Blocked aria-hidden: The Warning is Right, and Every Fix You’ve Found is Wrong Open ↗