-
-
Notifications
You must be signed in to change notification settings - Fork 78.5k
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
Remove redundant modal-open
class from modal.js
#33705
Conversation
I guess you can close #33551 then since that is covered by this PR as well. |
Thank you for your quick review. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even tho it's redundant, you can also look at it like it's more information for the person developing the application, so they can easily see what exactly is overriding the default scrolling behavior of the body.
6f8fe38
to
0d97e8c
Compare
@marco-amorim , as modal, and offcanvas, uses same pieces of code, and both are going to accept different rootElements than body, do you have any proposals which js helper should handle this (scrollbar or backdrop)? (Offcanvas doesn't provide any information till now) |
I missed that this was removing a class... might be a breaking change if folks have built off that at this point. Thoughts? |
0d97e8c
to
51f9923
Compare
reverted the 'breaking' change, moving the class toggling functionality to As an alternative, there is #33551 too that removes only the redundant css. |
As
scrollbar.js
handlesbody
overflowY, it is useless to use an extra class for the same reasonBased on this PR #33551