Layout shift when using a component that removes scrolling. Dialog
#1340
Unanswered
AbdallahAbis
asked this question in
Help
Replies: 3 comments
-
Hey @AbdallahAbis that should be handled normally for you. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Same here. I only got it on Windows. |
Beta Was this translation helpful? Give feedback.
0 replies
-
come on!!! some one answer this please i need it! exact same issue! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the Dialog primitive, but it's a causing layout shift cause it's applying both padding and margin on the right or could be for some other reason.
I have had a look at the code and also checked other discussions and seems you're using
react-remove-scroll
to remove the scrollbar, and you've also pointed to using theRemoveScroll.classNames.zeroRight
class name, but I don't know where exactly I should add that className, is it on the Dialog Root, or on the body, or the wrapper of the Dialog, or what?Beta Was this translation helpful? Give feedback.
All reactions