Skip to content

Commit

Permalink
Update lib/checks/navigation/region-evaluate.js
Browse files Browse the repository at this point in the history
Co-authored-by: Wilco Fiers <[email protected]>
  • Loading branch information
gaiety-deque and WilcoFiers committed May 2, 2024
1 parent bc6dc71 commit b29a90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checks/navigation/region-evaluate.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function findRegionlessElms(virtualNode, options) {
function isShallowlyHidden(virtualNode) {
// The element itself is not visible to screen readers, but its descendants might be
return (
getRole(virtualNode, { noPresentational: true }) === null &&
['none', 'presentation'].includes(getRole(virtualNode)) &&
!hasChildTextNodes(virtualNode)
);
}
Expand Down

0 comments on commit b29a90d

Please sign in to comment.