You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Radix community! 👋 I’m working on a component that needs to:
Be static section (non-modal) on large screens (with open/hidden state).
Switch to a modal on small screens.
I’m using <Dialog.Root> with modal={false} for large screens, but running into two accessibility issues:
Problems
Even with modal={false}, Radix injects focus-guard elements, and keyboard navigation gets "trapped" inside the content.
Expected: Tab navigation should escape the dialog when modal={false}.
Clicking outside closes the dialog (even with Dialog.Overlay hidden).
Workaround: Used onInteractOutside={(e) => e.preventDefault()} on <Dialog.Content>, but this feels hacky.
Questions
Is the right component for this hybrid (static/modal) use case?
How can I disable focus traps when modal={false}?
Is there a cleaner way to prevent outside clicks in non-modal mode?
Code Sample
Beta Was this translation helpful? Give feedback.
All reactions