Skip to content
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

Scrollbar.js Sanitizations #33665

Closed
wants to merge 1 commit into from
Closed

Scrollbar.js Sanitizations #33665

wants to merge 1 commit into from

Conversation

GeoSot
Copy link
Member

@GeoSot GeoSot commented Apr 17, 2021

Background: First Pr #33245 was to just decoupling scrollbar functionality form modal.js , coping the existing code as it was.

This Pr optimizes functionality:

  • Removes .modal-open class as it is already handled by scrollbar.js
  • _modal.scss make modal overflowY: auto by default (was on ``.modal-open`, which is the same)
  • scrollbar.js: keep initial body overflowY value as attribute and re-set it properly & test
  • scrollbar.js: avoid to create data-bs attributes for null values
  • Revisit modal, offcanvas & scrollbar tests
  • set the base to support different rootElement (than body) helping Support configuring "root element" for modal #33018 an Offcanvas inside containers other than viewport #33574

@GeoSot GeoSot force-pushed the gs-scrollbar-sanitations branch from c7ed03a to 8f13c43 Compare April 17, 2021 01:09
@GeoSot GeoSot marked this pull request as ready for review April 17, 2021 01:13
@GeoSot GeoSot requested review from a team as code owners April 17, 2021 01:13
@GeoSot GeoSot force-pushed the gs-scrollbar-sanitations branch 5 times, most recently from c0ce47c to 0d877f5 Compare April 17, 2021 08:30
@GeoSot GeoSot marked this pull request as draft April 17, 2021 21:21
@GeoSot GeoSot force-pushed the gs-scrollbar-sanitations branch 2 times, most recently from 40f5a33 to 5f077e0 Compare April 25, 2021 22:01
@GeoSot GeoSot force-pushed the gs-scrollbar-sanitations branch from 5f077e0 to 54eb3f9 Compare April 29, 2021 00:51
* Remove `.modal-open` class as it is already handled by scrollbar.js
* _modal.scss make modal `overflowY: auto` by default (was on ``.modal-open`, which is the same)
* scrollbar.js: avoid to create data-bs attributes for null values & test
* Revisit modal, offcanvas, scrollbar tests
* set the base to support different rootElement (than body)
@GeoSot GeoSot force-pushed the gs-scrollbar-sanitations branch from 54eb3f9 to 1cc295e Compare May 11, 2021 23:43
@GeoSot GeoSot closed this May 12, 2021
@XhmikosR XhmikosR deleted the gs-scrollbar-sanitations branch May 13, 2021 16:47
@XhmikosR XhmikosR restored the gs-scrollbar-sanitations branch May 13, 2021 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant