I am reading a bit on aria uses, and came across this piece of documentation:Fourth Rule of ARIA Use. One part that is not clear to me is this:
"Applying aria-hidden to a parent/ancestor of a visible interactive element will also result in the interactive element being hidden,"
I tried the following snippet, but the anchor tag is still accessible (even though I put an aria-hidden on its parent). What am I missing here?
body, html {
background-color: #333;
height: 100%;
}
#main {
margin: 0 auto;
width: 80%;
background-color: #fff;
height: 100%;
padding: 50px;
}
.test {
border: 1px solid #555;
padding: 10px;
}
<div id="main">
<div tabindex="0">Woohoo</div>
<div class="test" aria-hidden="true" role="presentation">
<div class="one" aria-hidden="true">
<span aria-hidden="true">
<a href="#">Testing</a>
</span>
</div>
</div>
</div>