]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Use the backdrop util in offcanvas, enforcing consistency (#33545)
authorGeoSot <geo.sotis@gmail.com>
Mon, 19 Apr 2021 05:20:25 +0000 (08:20 +0300)
committerGitHub <noreply@github.com>
Mon, 19 Apr 2021 05:20:25 +0000 (08:20 +0300)
commita9d7a62658c5d93dcba5ed5fc47d84f3ddd3e0a3
treeabc7fcf44b0dabe61ea03933d1b1c6308e2619ae
parentdf8131a1f88e62f6bc8ae1c669bc0e534965bf1a
Use the backdrop util in offcanvas, enforcing consistency (#33545)

* respect /share modal's backdrop functionality, keeping consistency
* listen click events over backdrop (only) and trigger `hide()` without add/remove event tricks
* achieve to hide foreign open offcanvas instances without glitches `if (allReadyOpen && allReadyOpen !== target)`, in case another is going to be open, when user clicks on trigger button
js/src/offcanvas.js
js/src/util/backdrop.js
js/tests/unit/offcanvas.spec.js
js/tests/unit/util/backdrop.spec.js
scss/_offcanvas.scss
scss/_variables.scss