Skip to content

[dialog] Support scrollbar-gutter #79

@oliviertassinari

Description

@oliviertassinari

Steps to reproduce

Steps:

  1. Add this CSS to the page:
html {
  scrollbar-gutter: stable;
}

and render a <Modal> component, e.g.

Screen.Recording.2024-01-23.at.01.32.26.mov

Current behavior

The layout moves and the backdrop doesn't cover the whole page.

Expected behavior

Either scrollbar-gutter: auto is set as a temporary reset while the dialog is open (better) or no padding is added to the body.

Context

TODO

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: scrollbar gutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: dialogChanges related to the dialog component.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions