aboutsummaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)AuthorFilesLines
2017-05-14Better placement for Dropdown + Handle flip of Tooltip/PopoverJohann-S3-3/+15
2017-05-14Remove totaly Tether from documentation + dependenciesJohann-S2-5/+5
2017-05-14Handle dropup for DropdownJohann-S3-4/+29
2017-05-14Fix unit tests + Update Popper to 1.6.0Johann-S6-94/+67
2017-05-14Remove constraints option and check every optionsJohann-S2-14/+12
2017-05-14Begin to use Popper for DropdownJohann-S3-9/+92
2017-05-14Fix arrow for tooltip and popoverJohann-S3-67/+38
2017-05-14Add attachment classesJohann-S4-2/+32
2017-05-14Begin to add arrow to Popover and TooltipJohann-S3-5/+8
2017-05-14Use Popper for tooltip and popoverJohann-S4-55/+24
2017-04-28Fix typo removeData for Tabs pluginJoyce Babu1-1/+1
Should remove `data` not `class` on dispose
2017-04-26Fix Toggle buttons don't honor [disabled] or .disabledAnna2-0/+23
2017-04-25Detach accordion from card without requiring 'data-children'Pierre Vanduynslager2-21/+71
2017-04-21buildMark Otto14-17/+53
2017-04-21Arguably more professional pictures of Rick RossZach Leatherman1-3/+3
2017-04-21More minor build tweaks and docs updates.Bardi Harborow3-9/+8
2017-04-20Fix for copy/paste error in iOS hack to tooltipsPatrick H. Lauke1-2/+1
(with apologies, this slipped through due to build system problems on my end)
2017-04-20Tweak iOS hack for dropdownPatrick H. Lauke1-2/+2
Tweak to https://github.com/twbs/bootstrap/pull/22426, where the wrong selector slipped through the net (selecting all of `<body>`s grand-children rather than children)
2017-04-20Add iOS hack to tooltipsPatrick H. Lauke1-0/+16
Same hack as in https://github.com/twbs/bootstrap/pull/22426 (modulo the selector, which is wrong in that PR and will be updated in a separate PR) to get tooltips to work correctly on iOS. Dynamically adds/removes empty (`noop`) `touchstart` event handlers to all children of `<body>` in order to coax iOS into proper event delegation/bubbling
2017-04-20Build system overhaul.Bardi Harborow1-72/+0
2017-04-17Fix carousel "hover" behavior on touch-enabled devicesPatrick H. Lauke2-34/+30
* 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-16gruntMark Otto8-33/+30
2017-04-14Replace dropdown backdrop hack with cleaner JS-only hackPatrick H. Lauke1-14/+9
* Replace backdrop with simple noop mouse listener As discussed in https://github.com/twbs/bootstrap/pull/22422 the current approach of injecting a backdrop (to work around iOS' broken event delegation for the `click` event) has annoying consequences on touch-enabled laptop/desktop devices. Instead of a backdrop `<div>`, here we simply add extra empty/noop mouse listeners to the immediate children of `<body>` (and remove them when the dropdown is closed) in order to force iOS to properly bubble a `click` resulting from a tap (essentially, method 2 from https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html) This is sufficient (except in rare cases where the user does manage to tap on the body itself, rather than any child elements of body - which is not very likely in an iOS phone/tablet scenario for most layouts) to get iOS to get a grip and do the correct event bubbling/delegation, meaning the regular "click" event will bubble back to the `<body>` when tapping outside of the dropdown, and the dropdown will close properly (just like it already does, even without this fix, in non-iOS touchscreen devices/browsers, like Chrome/Android and Windows on a touch laptop). This approach, though a bit hacky, has no impact on the DOM structure, and has no unforeseen side effects on touch-enabled laptops/desktops. And crucially, it works just fine in iOS. * Remove dropdown backdrop styles * Update doc for dropdowns and touch-enabled devices
2017-04-12Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager1-5/+6
2017-04-12Reword "mobile" to "touch-enabled"Patrick H. Lauke1-5/+6
...as touch is not exclusive to "mobile" anymore nowadays. also explicitly clarifies this is a fix for iOS, and that it impacts touch laptops etc as well. lastly, renames the variable from "dropdown" to "backdrop" for clarity/consistency
2017-04-12Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager1-1/+1
2017-04-12IndentPierre-Denis Vanduynslager1-1/+1
2017-04-11Remove inappropriate role="listbox" from carouselsPatrick H. Lauke1-1/+1
2017-04-10Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager4-22/+40
2017-04-10Fix collapse.js aria-expanded behaviorPatrick H. Lauke2-20/+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. Lauke2-2/+24
* 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-09Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager1-0/+1
2017-04-09Prevent default for ESC in modal.jsPatrick H. Lauke1-0/+1
ESC can be used to close modals, but on OS X/macOS this also jumps out of full-screen mode. `preventDefault` suppresses this.
2017-04-08Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager42-588/+1506
2017-04-08gruntMark Otto6-37/+64
2017-04-03Fix #22332: Adjust tests for hidden scrollbarIlias1-3/+15
2017-04-02Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-devMark Otto8-123/+360
2017-04-02Fix #18373: properly adjust padding-right of body and fixed elements when ↵Ilias2-39/+138
opening or closing modal
2017-04-02Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, ↵Pierre Vanduynslager6-84/+222
.nav-item, <li> etc...)
2017-04-01gruntMark Otto8-38/+33
2017-03-31Popover + Tooltip - fix error when content or title is a numberJohann-S3-0/+42
2017-03-29Collapse - Fix check to not prevent event for input and textareaJohann-S2-2/+3
2017-03-28Fix JS components console error "Error: <Component> is transitioning"Pierre Vanduynslager8-132/+32
2017-03-28gruntMark Otto2-1/+11
2017-03-28Fix different tooltips offset when hoveringJohann2-0/+27
2017-03-27gruntMark Otto2-2/+4
2017-03-27Collapse - do not prevent event for input and textareaJohann2-1/+19
2017-03-26gruntMark Otto4-10/+17
2017-03-23rename from .navbar-toggleable to .navbar-expand to reflect mobile first ↵Mark Otto2-2/+2
approach everywhere else
2017-03-23more docs updatesMark Otto1-2/+2