Skip to content

Modal does not apply padding-right on body element for BS5 #6737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
webwitcher opened this issue Mar 24, 2025 · 0 comments
Open

Modal does not apply padding-right on body element for BS5 #6737

webwitcher opened this issue Mar 24, 2025 · 0 comments

Comments

@webwitcher
Copy link

Bug description:

When opening a modal scrollbars are removed because overflow-y: hidden is applied to body. padding-right on body should compensate so that there is no jumping of the content. However padding-right is always 0px.

This happens only on Bootstrap V5.

Can be reproduced on the official ngx-bootstrap site: https://valor-software.com/ngx-bootstrap/components/modals?tab=overview#service-disable-backdrop

Angular.Bootstrap.-.Google.Chrome.2025-03-24.21-21-22.mp4

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: v19

Angular: V19

Bootstrap: V5

Expected behavior

Should apply padding-right on body correctly as for Bootstrap 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant