0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-30 12:24:19 +01:00
Bootstrap/js/tests/unit
Patrick H. Lauke 96be06e32b
Dynamic tabs: use buttons rather than links (#32630)
* Dynamic tabs: use buttons rather than links

- change docs
- add mention that tabs should be <button> elements
- tweak styles to neutralise border and background

* Update js unit and visual test accordingly

- replace links with buttons
- make one specific test that uses links instead of buttons, as we still want to support it despite it being non-semantically appropriate
- Leaving a couple of tests for now. The test for removed tabs should be redone so that tabs are removed programmatically (as the approach of having that close button inside the link is invalid and broken markup). The test for dropdowns should be removed together we actually ripping out the handling for dropdowns in the tab.js code (arguably a breaking change, though we discouraged this for a few versions and effectively "deprecated" it)

* Add isolation:isolate to prevent focus being overlapped

https://github.com/twbs/bootstrap/pull/32630#issuecomment-756015766
2021-02-09 07:23:45 +02:00
..
dom Remove SelectorEngine.matches(). (#32339) 2020-12-07 19:10:20 +02:00
util Prevent getSelector from returning URLs as selector (#32586) 2021-02-03 21:58:54 +02:00
.eslintrc.json Minor ESLint rules cleanup (#32904) 2021-01-28 11:34:20 +02:00
alert.spec.js Switch to Jasmine's toBeInstanceOf matcher 2020-11-29 20:58:26 +02:00
button.spec.js Switch to Jasmine's toBeInstanceOf matcher 2020-11-29 20:58:26 +02:00
carousel.spec.js Make carousel indicators actual buttons 2021-01-28 23:32:24 +02:00
collapse.spec.js Throw a TypeError instead of the generic Error (#32585) 2021-01-13 22:13:30 +02:00
dropdown.spec.js Fix dropdown keys to open menu (#32750) 2021-02-03 22:03:21 +02:00
jquery.spec.js tests: replace deprecated jQuery method (#32309) 2020-12-16 17:21:43 +02:00
modal.spec.js Throw a TypeError instead of the generic Error (#32585) 2021-01-13 22:13:30 +02:00
popover.spec.js Throw a TypeError instead of the generic Error (#32585) 2021-01-13 22:13:30 +02:00
scrollspy.spec.js Throw a TypeError instead of the generic Error (#32585) 2021-01-13 22:13:30 +02:00
tab.spec.js Dynamic tabs: use buttons rather than links (#32630) 2021-02-09 07:23:45 +02:00
toast.spec.js Throw a TypeError instead of the generic Error (#32585) 2021-01-13 22:13:30 +02:00
tooltip.spec.js Restore offset option for tooltip/popover components 2021-01-28 12:23:33 +02:00