]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Add shift-tab keyboard support for dialogs (modal & Offcanvas components) (#33865)
authorRyan Berliner <22206986+RyanBerliner@users.noreply.github.com>
Tue, 27 Jul 2021 05:01:04 +0000 (01:01 -0400)
committerGitHub <noreply@github.com>
Tue, 27 Jul 2021 05:01:04 +0000 (08:01 +0300)
commit7646f6bd33a03132e446fb060880bbf051a1639f
treea2addfd5e2f99b23322cd053ca0ec53c48cf6fc6
parent85364745831ba5513ee7e940fe571cb4268810b8
Add shift-tab keyboard support for dialogs (modal & Offcanvas components) (#33865)

* consolidate dialog focus trap logic

* add shift-tab support to focustrap

* remove redundant null check of trap element

Co-authored-by: GeoSot <geo.sotis@gmail.com>
* remove area support forom focusableChildren

* fix no expectations warning in focustrap tests

Co-authored-by: GeoSot <geo.sotis@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
.bundlewatch.config.json
js/src/dom/selector-engine.js
js/src/modal.js
js/src/offcanvas.js
js/src/util/focustrap.js [new file with mode: 0644]
js/tests/unit/dom/selector-engine.spec.js
js/tests/unit/modal.spec.js
js/tests/unit/offcanvas.spec.js
js/tests/unit/util/focustrap.spec.js [new file with mode: 0644]