Repository navigation
Description
Provide a general summary of the feature here
ModalOverlay and Modal are always modal: they block the page with inert, trap focus, and close on an outside click unless isDismissable is off. There is no way to render a drawer (a panel along one edge of the window) that keeps the page usable while it is open, as Popover allows with isNonModal.
🤔 Expected Behavior?
A Modal (or ModalOverlay) prop such as isNonModal, with the same meaning as on Popover:
- the rest of the page stays interactive and is not hidden from assistive technology;
- focus moves into the panel on open and returns to the trigger on close, but is not trapped;
- Escape closes the panel while focus is inside it; an outside click does not;
- the overlay keeps its enter and exit states (
isEntering,isExiting), so a slide-in animation works the same way in both modes.
😯 Current Behavior
A non-modal drawer has to be rebuilt by hand outside Modal: a portal, FocusScope with restoreFocus, useOverlay with isDismissable: false, and its own mount and exit-animation logic. Wrapping Dialog in React Aria's Overlay does not work either: the Dialog keeps focus inside it.
💁 Possible Solution
Accept isNonModal on ModalOverlay / Modal. When it is set, skip ariaHideOutside and usePreventScroll, render no blocking underlay, contain no focus, and never dismiss on an outside interaction, while keeping the rest of the overlay lifecycle.
🔦 Context
Our design system offers a drawer in both Angular (ng-primitives) and React (React Aria). Product screens need a non-modal one: a version history or a comments panel beside an editor the person keeps working in, and a drawer that pushes the content aside instead of covering it. We do not want to keep our own overlay outside React Aria for this one case.
💻 Examples
- Render a
DialogTriggerwith aButtonand aModalOverlay > Modal > Dialogstyled as a panel on the right edge. - Open it, then try to click a button or type in a field on the page behind it.
Expected, with a non-modal option: the page responds, and the panel stays open. Today: the page is inert, and the click closes the panel (or does nothing with isDismissable={false}).
🧢 Your Company/Team
ITONICS
🕷 Tracking Issue
None found: no open or closed issue or PR asks for a non-modal Modal, drawer or side panel. Sheet (#10674) is modal too.
Activity
snowystinger commentedon Nov 18, 2026
I think all you want is a landmark region (div with a supported role) so that users can navigate to and from it quickly with their keyboard. Otherwise you just want it to show and hide when you click something? I think there isn't really much else for us to do as there's no accessibility with that past the landmark. You could render a non-containing but restoring FocusScope inside it if you want that behaviour.
Modals will not be supporting this, that would be an ARIA violation.