[Dialog] and "portalled" content #1012
Unanswered
TrevorRice
asked this question in
Help
Replies: 1 comment 2 replies
-
Hi @TrevorRice 👋 We have a semi related issue on this. We've discussed updating our focus scope logic to consider the React tree instead and I'm keen to give it a go, it's just finding the time at the moment. In the meantime, you can try any of these workarounds #922 (comment)
Thank you 💛 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Was curious to get your thoughts on components passed to
Dialog
that leverage portals.Here's an example (albeit a bit contrived) that places Reach UI's
Listbox
inside ofDialog
. While very specific, I would imagine the below could be seen in other similar portal usage.I'm noticing two things:
Dialog
's trapping logic?aria-hidden="true"
applied to it. Is there a way to exclude elements outside of theDialog
's DOM tree from the "hidden" logic? FWIW, Reach's ownDialog
has the same issue.Wasn't sure if this is an expected/supported use-case, but I thought I'd bring it up to get your thoughts.
Amazing work on Radix by the way!
Beta Was this translation helpful? Give feedback.
All reactions