aria-hidden="true" are not focusable
This rule tests conformance of the following accessibility requirements:
This rule applies to every element with an
aria-hidden attribute with a value of
This rule assumes that focusing elements does not change their
aria-hiddenattribute. If scripting removes the
aria-hiddenattribute upon receiving focus, this rule will produce incorrect results. Note that this is still not a great user experience since it prevents Assistive Technology users from knowing the content of the page before interacting with it.
This rule assumes that focusable elements do not redirect focus immediately upon receiving it. Modal windows sometimes have "focus sentinel" to redirect focus at their top upon reaching the bottom. In such a case, the interactive elements outside of the modal are technically focusable but will never effectively receive focus nor cause an accessibility problem.
This rule has no known accessibility support concerns.
This element has been excluded from the accessibility tree but is not focusable and therefore passes the rule:
<div aria-hidden="true"> <p>This is some text</p> </div>
<button aria-hidden="true" tabindex="-1">This is a button</button>
This element has been excluded from the accessibility tree but is still focusable and therefore fails the rule:
<button aria-hidden="true">This is a button</button>
This element has not been excluded from the accessibility tree and is therefore inapplicable:
<button>This is a button</button>
This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/6cfa84/. Copyright © 2023 W3C® (MIT, ERCIM, Keio, Beihang).