Skip to content

useModalOverlay breaks interaction of external overlay elements #8784

@smitev

Description

@smitev

Provide a general summary of the issue here

useModalOverlay sets by default in ariaHideOutside shouldUseInert: true.

That breaks interaction with external overlays not created with react-aria.
For example libraries for creating cookie consent dialogs that are loaded before the react-aria dialog.

🤔 Expected Behavior?

useModalOverlay should be have a prop to disable setting the inert (or aria-hidden) to the other HTML elements in the body.

😯 Current Behavior

At the moment you can't disable shouldUseInert on the ariaHideOutside used inside useModalOverlay

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

/

Version

/

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS Sequioa

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions