Skip to content

Commit

Permalink
Remove aria-hidden=true with noIsolation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
omerdemirkan committed Feb 6, 2022
1 parent 2eaf1b2 commit c2d5d65
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Effect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ export function Effect({
let unmounted = false;

const onNodeActivation = (node: HTMLElement) => {
_undo = hideOthers(
[node, ...(shards || []).map(extractRef)],
document.body,
noIsolation ? undefined : focusHiddenMarker
);

if (!noIsolation) {
_undo = hideOthers(
[node, ...(shards || []).map(extractRef)],
document.body,
focusHiddenMarker
);
}
setActiveNode(() => node);
};

Expand Down

0 comments on commit c2d5d65

Please sign in to comment.