aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tab.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-02-09Dynamic tabs: use buttons rather than links (#32630)Patrick H. Lauke1-50/+74
* 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-01-13Throw a `TypeError` instead of the generic `Error` (#32585)Rohit Sharma1-4/+2
* Change from Error to TypeError * Convert the `NAME` to upper case to make the consistency in the error message * Update the remaining tests to be stricter Co-authored-by: XhmikosR <[email protected]>
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+1
2020-11-14Fix `.close` instances (#32152)XhmikosR1-3/+3
2020-11-14Add `bs` in data attributesRohit Sharma1-20/+20
- Add `bs` in data APIs everywhere - Update unit tests
2020-06-09Remove .nav-item from .nav-link to make it consistentRohit Sharma1-5/+5
- Closes #28423
2020-05-06tests: streamline HTML end tags (#30648)XhmikosR1-3/+9
2020-03-28v5 tabs - accessibility issue when using ul/li semanticLaussel Loïc1-17/+17
Add aria-role presentation on li element when ul element has role tablist and remove dropdown from visual tests as they've been removed from doc
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+593