Closed omerdemirkan closed 2 years ago
From one point of view hiding everything except currently "usable" area should fix those tests, so this moment is not really makes sense. But there are two other points:
noIsolation
means NO ISOLATION. No other reading is possible.noIsolation ? undefined : focusHiddenMarker
is to set focusHiddenMarker
for "other nodes"focusHiddenMarker
controls pointer-events: none
Thanks for the context!
Would love to get my hands on an updated version; is there a particular schedule the package follows for releases?
Trying to handle 4 more problems (starting from #58)
Current behavior adds aria-hidden attribute throughout the DOM with
noIsolation === true
by callinghideOthers(refs, document.body, undefined)
.This makes introducing the library into a codebase with existing UI testing extremely challenging, as many testing frameworks ignore subtrees with
aria-hidden="true"
, meaning as soon as react-focus-on is used, many UI tests may go red. I made this in hopes of removing that barrier to entry.