]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Handle disabled focused tabs with tab JavaScript plugin (#36169)
authorJulien Déramond <julien.deramond@orange.com>
Fri, 6 May 2022 02:26:15 +0000 (04:26 +0200)
committerGitHub <noreply@github.com>
Fri, 6 May 2022 02:26:15 +0000 (19:26 -0700)
commit5d9500bdfdd02b3b1d91df2be86b1723f517fc52
tree74a29c6a0b05e22bb3efbc5520f19a3faa6ac6aa
parentcca801683dfbc54dc7ae7a6ef6ce4361b071bc36
Handle disabled focused tabs with tab JavaScript plugin (#36169)

* Handle disabled tabs

* Fix after feedback

* Update js/src/tab.js

Co-authored-by: GeoSot <geo.sotis@gmail.com>
* Update js/src/tab.js

Co-authored-by: GeoSot <geo.sotis@gmail.com>
* Commit suggestions via GitHub broke the thing

* Add some unit tests

* Remove temp doc modification

* Add tests for left arrow

* Add disabled tabs in JavaScript Behavior section

* Compact 4 tests to 2 tests

* Compact 4 tests to 2 tests

* Add 'disabled' attribute for all buttons

* Change the disabled pane position only for the vertical version

* Change ids for the confusing first example in JavaScript behavior

* Use disabled attribute instead of the class for buttons in tabs

Co-authored-by: GeoSot <geo.sotis@gmail.com>
js/src/tab.js
js/tests/unit/tab.spec.js
scss/_nav.scss
site/content/docs/5.1/components/navs-tabs.md