Skip to content

Commit b29a90d

Browse files
Update lib/checks/navigation/region-evaluate.js
Co-authored-by: Wilco Fiers <[email protected]>
1 parent bc6dc71 commit b29a90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checks/navigation/region-evaluate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function findRegionlessElms(virtualNode, options) {
9494
function isShallowlyHidden(virtualNode) {
9595
// The element itself is not visible to screen readers, but its descendants might be
9696
return (
97-
getRole(virtualNode, { noPresentational: true }) === null &&
97+
['none', 'presentation'].includes(getRole(virtualNode)) &&
9898
!hasChildTextNodes(virtualNode)
9999
);
100100
}

0 commit comments

Comments
 (0)