Skip to content

Accessibility Issue: aria-hidden element retains focus during onboarding wizard (v24.9) #22296

Open
@Sadatpour

Description

@Sadatpour

Hi Yoast team 👋,

I'm encountering an accessibility warning during the initial configuration wizard in Yoast SEO v24.9 — specifically in the Social Profiles step.

Here’s the warning from Chrome DevTools:

Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus.
Element with focus:
Ancestor with aria-hidden:


Why this matters:
This can cause confusion for screen reader users, as a focused element becomes hidden from assistive tech. It's likely related to animation transitions (react-animate-height) and aria-hidden not syncing properly with focus.

Suggested fix:
Use inert instead of aria-hidden on non-interactive containers during transitions.

Ensure no interactive/focusable elements are within an aria-hidden="true" ancestor.

Consider managing focus explicitly during panel transitions in the onboarding flow.

Thanks for all the great work on accessibility — I appreciate your commitment to building inclusive tools!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions