-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Use the backdrop util in offcanvas, enforcing consistency #33545
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Apr 7, 2021
GeoSot
force-pushed
the
gs-add-backdrop-functionality-to-offcanvas
branch
5 times, most recently
from
April 14, 2021 21:51
0e222a2
to
0849ccc
Compare
XhmikosR
changed the title
Make usage of backdrop util on offcanvas, enforcing consistency
Make use of the backdrop util in offcanvas, enforcing consistency
Apr 15, 2021
XhmikosR
changed the title
Make use of the backdrop util in offcanvas, enforcing consistency
Use the backdrop util in offcanvas, enforcing consistency
Apr 15, 2021
GeoSot
force-pushed
the
gs-add-backdrop-functionality-to-offcanvas
branch
2 times, most recently
from
April 16, 2021 21:55
75681a9
to
29f600f
Compare
alpadev
reviewed
Apr 17, 2021
alpadev
reviewed
Apr 17, 2021
GeoSot
force-pushed
the
gs-add-backdrop-functionality-to-offcanvas
branch
from
April 17, 2021 21:24
29f600f
to
8ed7bf4
Compare
alpadev
approved these changes
Apr 18, 2021
This was referenced Jul 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes use of a separated util, backdrop, and reverts some assumptions that had been made in order to proceed the initial Offcanvas PR
Based on #32439
Background:
The initial idea was to decouple Modal backdrop functionality, as it was scattered inside
modal.js
, giving the opportunity onmodal.js
to focus on vital things, and after merging to use it inoffcanvas
.It was referenced sometimes here
Unfortunately merge process of #32439 stuck about 3 months ago. But Offcanvas had to go on.
So with this PR, I am trying to complete the initial plan:
hide()
without add/remove event tricksif (allReadyOpen && allReadyOpen !== target)
, in case another is going to be open, when user clicks on trigger buttonCloses #33471, closes #33457, closes #33447, closes #33535, closes #33564
Preview: https://deploy-preview-33545--twbs-bootstrap.netlify.app/docs/5.0/components/offcanvas/