aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2017-07-04Dropdown - Disable applyStyle modifier instead of removing inline style ↵Johann-S1-0/+29
applied by Popper.js
2017-06-15Rename popover classesMark Otto1-14/+14
Part of an update to align the naming schemes across our components. - Renames .popover-title to .popover-header - Renames .popover-content to .popover-body Refs: #22092
2017-06-14Collapse supports multi-target thanks to @vanduynslagerp (#22713)Johann-S1-4/+89
2017-06-14Fix unit tests with no assertionJohann-S1-11/+23
2017-05-27Update nav and navbar HTML markupGeremia Taglialatela1-31/+31
According to the docs, you just need to apply the `navbar-nav` to an `<ul>` tag in a list-based navbar. In fact, `navbar-nav` seems to override all the css properties set by `nav`. Also, `nav-item` class should be used only for `<li>` tags, or in conjunction with `<a>` tags to entirely avoid the list-based approach. This commit removes the redundant `nav` class from `navbar-nav` `<ul>` tags, moves `nav-item` from `<a>` tags to `<li>` tags and properly adds `nav-item` class to `<li>` tags where missing. Refs: * https://v4-alpha.getbootstrap.com/components/navs/ * https://v4-alpha.getbootstrap.com/components/navbar/#nav
2017-05-14Handle dropup for DropdownJohann-S1-2/+7
2017-05-14Fix unit tests + Update Popper to 1.6.0Johann-S3-87/+40
2017-05-14Fix arrow for tooltip and popoverJohann-S1-56/+27
2017-05-14Add attachment classesJohann-S1-1/+1
2017-04-26Fix Toggle buttons don't honor [disabled] or .disabledAnna1-0/+17
2017-04-25Detach accordion from card without requiring 'data-children'Pierre Vanduynslager1-9/+67
2017-04-20Build system overhaul.Bardi Harborow1-72/+0
2017-04-17Fix carousel "hover" behavior on touch-enabled devicesPatrick H. Lauke1-23/+0
* Add carousel mouse listeners even if touch events enabled - touch events are enabled not just on "mobile", just also on touch-enabled desktop/laptop devices; additionally, it's possible to pair a mouse with traditionally touch-only devices (e.g. Android phones/tablets); currently, in these situations the carousel WON'T pause even when using a mouse * Restart cycle after touchend as `mouseenter` is fired as part of the touch compatibility events, the previous change results in carousels which cycle until the user tapped/interacted with them. after that they stop cycling (as `mouseleave` is not sent to the carousel after user scrolled/tapped away). this fix resets the cycling after `touchend` - essentially returning to the previous behavior, where on touch the carousel essentially never pauses, but now with the previous fix it at least pauses correctly for mouse users on touch-enabled devices. includes documentation for this new behavior.
2017-04-10Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager2-16/+34
2017-04-10Fix collapse.js aria-expanded behaviorPatrick H. Lauke1-16/+16
* Remove aria-expanded from collapse.js target element aria-expanded="true"/aria-expanded="false" only applies to the trigger, not the element that is being expanded/collapsed. * Tweak collapse.js accessibility section ...to make it clearer that the aria-expanded attribute always just goes on the control. * Fix collapse.js unit tests - reword some of the text to make it clear we're checking behavior of trigger/control - move incorrect aria-expanded out of the <div>s and to the actual trigger/control <a>s - fix incorrect test assertion text output false -> true
2017-04-10Only change aria-pressed if it's not an input-based radio or checkbox groupPatrick H. Lauke1-0/+18
* Only change aria-pressed if it's not an input-based radio or checkbox group aria-pressed="true"/aria-pressed="false" is really only useful for making on/off toggles out of, say, `<button>` elements. the attribute is useless (and potentially confusing/conflicting) on, say, `<label>` elements for an existing `<input type="radio">` or similar. * Add unit test for buttons.js and radio/checkbox inputs in button groups
2017-04-08Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager7-61/+444
2017-04-03Fix #22332: Adjust tests for hidden scrollbarIlias1-3/+15
2017-04-02Fix #18373: properly adjust padding-right of body and fixed elements when ↵Ilias1-28/+95
opening or closing modal
2017-04-02Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, ↵Pierre Vanduynslager2-17/+171
.nav-item, <li> etc...)
2017-03-31Popover + Tooltip - fix error when content or title is a numberJohann-S2-0/+34
2017-03-29Collapse - Fix check to not prevent event for input and textareaJohann-S1-1/+2
2017-03-28Fix different tooltips offset when hoveringJohann1-0/+17
2017-03-27Collapse - do not prevent event for input and textareaJohann1-0/+16
2017-03-23Accordion behavior with JQuery interface (#21726)Pierre Vanduynslager1-22/+22
Fix accordion behavior with JQuery interface
2017-03-22Carousel - Add attributes from and to for Slid and Slide events (#21668)Johann1-0/+43
Carousel - Add attributes from and to for Slid and Slide events
2017-03-21Always append element to fixture in Scrollspy unit tests (#22234)Pierre Vanduynslager1-2/+2
2017-03-19Merge branch 'collapse' of https://github.com/Johann-S/bootstrap into ↵Mark Otto1-0/+23
Johann-S-collapse
2017-03-18Allow to use Tab.js with list-group (#21756)Johann1-0/+16
* Allow to use Tab.js with list-group * Allow to use list-group with div parent instead of an ul parent
2017-03-09Add unit testJohann-S1-0/+23
2017-02-08Fixes #21941Pierre-Denis Vanduynslager1-5/+11
2017-01-20Harmonize document.activeElement comparisonPierre-Denis Vanduynslager1-3/+3
2017-01-20Refactor test to event and asyncPierre-Denis Vanduynslager1-64/+141
2017-01-20Add unit test for keyboard navigationPierre-Denis Vanduynslager1-0/+34
2017-01-20Fix test to retrieve the proper item instead of it's parentPierre-Denis Vanduynslager1-1/+1
2017-01-06Merge branch 'twbs/v4-dev' into dropdown-keyboardPierre-Denis Vanduynslager1-0/+11
2017-01-06Update dropdown unit test to new markupPierre-Denis Vanduynslager1-137/+136
2017-01-04Close #21090 - Fix aria-pressed attribute for buttons in container with ↵Johann-S1-0/+11
data-toggle='buttons'
2017-01-02Dropdown: close menu when focusing outside element (#21375)Pierre-Denis Vanduynslager1-0/+60
* Close dropdown menu when focusing an outside element * Update unit test to new markup
2017-01-02update seletors in jsMark Otto1-4/+4
2016-12-31Allow to use nav with tab JSJohann-S1-0/+16
2016-12-29Close #21249 : Add a Unit test for #21227Johann-S2-0/+62
2016-12-27update click state when hiding so can be shown again by trigger. fixes #16732Max Beatty1-0/+21
2016-12-24[Fix #19849] Tabs are opened even if disabled. (#20795)Alessandro Rodi1-0/+38
* [Fix #19849] Tabs are opened even if disabled. * fix hund code review hints * rollback hound issues because Travis fails
2016-12-23Carousel: Only prevents default for ARROW_LEFT and ARROW_RIGHT keysMatheus Azzi1-0/+31
Fixes 2 bugs: 1. All keydowns were being prevented. Because of that the user wasn't able to navigate in the whole page using ARROW_UP/ARROW_DOWN. 2. Even when is an input or textarea the keydowns were being prevented. Because of that the user wasn't able to type any text on these elements.
2016-12-07Rename `.active` to `.show`Starsam805-57/+57
2016-11-27Closes #21055: Prevents ScrollSpy from clearing active item when Safari ↵Rob Ruana1-0/+44
rubberbands (#21056) When the rubberband effect causes Safari to scroll past the top of the page, the value of scrollTop becomes negative. If the offset of the first ScrollSpy target is 0 - essentially if the target is at the top of the page - then ScrollSpy should not clear the active item. Conceptually, the first item should remain active when rubberbanding past the top of the page. This commit fixes issue #21055 by verifying the first scrollspy target is not at the top of the page before clearing the active nav-item.
2016-11-26Merge pull request #18900 from vlastikcz/v4-dev-buttonChangeMark Otto1-0/+20
Button toggling - trigger change event on input. Fixes #16673, fixes #17599.
2016-11-26Merge pull request #19058 from Johann-S/carouselInputMark Otto1-0/+32
Carousel - Do not prevent on keydown for input and textarea
2016-11-26Merge branch 'v4-dev-18796' of https://github.com/maxbeatty/bootstrap into ↵Mark Otto1-0/+22
maxbeatty-v4-dev-18796