Skip to content

Add option to keep container scrolling enabled when using Modal #88

Description

@jsakas

Is your feature request related to a problem? Please describe

I am working on a set of components in a library: Dialog, Modal, and Popover. It is feasible that these can be nested in an order. For example, a Modal with a Popover button inside of it.

I want to use the Modal from this library as the base for all three of these, as it allows us to nest these in any order and keeps track of the open order and focus state.

The Modal component can almost be used to create accessible popovers as described, but it needs to allow us to keep container scrolling intact when using stand-alone outside of a modal.

Describe the solution you'd like

A new prop added to Modal, disableContainerScroll, that defaults to true.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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