dom-accessibility-api icon indicating copy to clipboard operation
dom-accessibility-api copied to clipboard

computeAccessibleName ignores hidden children referenced in aria-labelledby

Open gethinwebster opened this issue 1 year ago • 0 comments

See https://codesandbox.io/s/sample-of-dom-accessibility-api-forked-jln14y?file=/src/index.js

// doesn't work: computeAccessibleName -> "Self"
<div id="el1" aria-labelledby="el1 el3">
  Self
  <div id="el3" hidden> hidden </div>
</div>

// works: computeAccessibleName -> "Self hidden"
<div id="el21" aria-labelledby="el21 el23">
  Self
</div>
<div id="el23" hidden> hidden </div>

gethinwebster avatar Jun 08 '23 12:06 gethinwebster