Skip to content

Consider allowing aria-hidden=false on visibly rendered elements inside an ancestor with aria-hidden=true #1256

Description

@cookiecrook

In relation to aria-hidden error cases #1254 and #1255, @aleventhal suggested that we reconsider allowing aria-hidden=false on visibly rendered elements inside an ancestor with aria-hidden=true

The example of this is aria-hidden=true on a main section, but aria-hidden=false to "unhide" the descendant, such as a dialog or menu. In this case, the WG generally agreed that the author intention is pretty clear.

<main aria-hidden="true">
  ... main content hidden during this state, and usually "grayed out" visually ...
  <div role="menu" aria-hidden="false">
      ... dialog or menu content "unhidden" ...
  </div>
</main>

It's worth noting that, years ago, @asurkov was opposed to having aria-hidden="false" expose non-rendered elements to the accessibility tree, and I think in most cases that concern is still valid. This issue is proposing that visible, rendered elements could use this pattern... somewhat similar to a non-inert descendant of an inert ancestor.

Opening for discussion. @aleventhal suggested both @asurkov and @jcsteh may have comments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

featuremay add new concept(s) to ARIA which will require implementations or APG changes

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions