mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.26k stars 32.12k forks source link

The scroll bar locking behavior (What if it'd be customizable with this global CSS) #43410

Open samueltesfayegari opened 3 weeks ago

samueltesfayegari commented 3 weeks ago
          added this 

body { overflow: auto !important; }

To overcome any CSS or JavaScript preventing the body from scrolling or locking the scroll bar.

But I ended up with the MUI offset of the right margin of the screen, like it fluctuates to the opposite.

I made that to stop the fluctuation from the scrollbar hiding, but MUI still got another offset.

Originally posted by @samueltesfayegari in https://github.com/mui/material-ui/issues/17353#issuecomment-2305711595

Search keywords:

siriwatknp commented 3 weeks ago

I guess you are suggesting to add it to the docs?

samueltesfayegari commented 2 weeks ago

Yes I wish the MUI offset could be overridden by something else or this.