aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-05-01Link to package.json FixedPeter Gerdes1-1/+1
The link to package.json in the v4 docs was linking to package.json in the v3 source. Fixed to point to the correct v4 location. A change like this will need to be made for all branches on version 4 if you want the docs to be linked correctly (github may be smart enough to follow the link to the current branch if you are on github but it was wrong from the main site).
2017-04-29Add watch-css and watch-js + a global watch commandJohann-S1-1/+3
2017-04-29don't prefix docs css, it generates .map files and mucks it all upMark Otto1-1/+1
2017-04-29watch task docs + cssMark Otto1-1/+3
2017-04-28Fix typo removeData for Tabs pluginJoyce Babu1-1/+1
Should remove `data` not `class` on dispose
2017-04-27Documentation cleanup (inc. use of <input ... readonly> for static form ↵Patrick H. Lauke13-192/+189
controls example) * Fix incorrect code indentation * Remove unnecessary vendor prefix for `box-sizing` - all modern browsers now support this unprefixed * Remove incorrect `<label>` and change static controls to readonly inputs * Allow `<img>` elements without `src` to allow for `holder.js` images used in the docs, which lack `src` and use `data-src` instead
2017-04-27Run js-test locally before js-test-cloudJohann-S1-1/+1
2017-04-27Fix build by installing grunt dependencies before js-test-cloudJohann-S1-3/+3
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-22Redo the small custom select varsMark Otto2-7/+4
— Sizing shorthand comes last — Add height var and put it to use
2017-04-22Change how input and select height is computedMark Otto3-13/+17
— Previously we weren't including the border-width on the computed height, leading to alignment issues. — New system utilizes three variables (not ideal, but straightforward) for computing these heights. One for the vertical border, one for the line-height/font-size/padding dance, and one to add those together. — Updates CSS across forms and custom forms to use new sizing. Special note here: form validation icon sizing uses the inner variables because background-image doesn't bleed into borders unless explicit background-clip.
2017-04-21Merge branch 'form-tweaks' of https://github.com/twbs/bootstrap into form-tweaksMark Otto1-1/+1
2017-04-21Merge branch 'v4-dev' into form-tweaksMark Otto28-47/+155
2017-04-21buildMark Otto28-47/+155
2017-04-21Merge branch 'v4-dev' into form-tweaksMark Otto98-2518/+2212
2017-04-21Match validation mixin focus state to normal focus stateMark Otto1-1/+1
2017-04-21Arguably more professional pictures of Rick RossZach Leatherman1-3/+3
2017-04-21More minor build tweaks and docs updates.Bardi Harborow10-40/+38
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 Harborow14-1696/+1320
2017-04-19Add Johann-S to Core team :fireworks:Johann-S1-0/+4
2017-04-19Update NuGet shield link to latest version and bower shield link toJesse Mandel1-2/+2
a bower search
2017-04-18Port button group accessibility callout from v3 to v4Patrick H. Lauke1-0/+8
2017-04-18Fix running test on iOS with SaucelabsJohann-S1-3/+3
2017-04-18Add dropdown menu accessibility callout and fix <a> examplePatrick H. Lauke1-1/+11
As the question often comes up about why Bootstrap does not do "true" ARIA menus (with their `role="menu"` etc), add an admittedly lengthy note (tl;dr because BS is generic, and ARIA menus are specific and quite limiting). Additionally, fixes up the `<a>` example for dropdown trigger, with the missing `role="button"` and neutering the `href` (which would be useless anyway since BS overrides the link-like nature of the `<a>` so it could never be triggered/followed anyway)
2017-04-17Fix carousel "hover" behavior on touch-enabled devicesPatrick H. Lauke3-35/+32
* 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-17Rewrite getting started/accessibility docsPatrick H. Lauke1-26/+26
A long overdue rewrite of the accessibility section - instead of the few snippets of strangely superficial and out-of-context advice (skip links, use correct heading levels), this tries to answer some of the fundamental questions about "is Bootstrap accessible", with emphasis on the fact that the final result will depend in large part on what BS is applied to/on (since BS relies on the markup etc authored by developers). This also sets out our ambition to have things work for keyboard and assistive tech users, and that we strive to make all our examples etc accessible and semantic. * Changes based on @mdo's feedback
2017-04-16Merge branch 'v4-dev' into form-tweaksMark Otto9-46/+47
2017-04-16Rename variable $input-border-focus to $input-border-color-focus (#22413)Patrick Yeo9-47/+47
* Rename variable $input-border-focus to $input-border-color-focus * Rename variables $pagination-hover-border, $pagination-active-border, $pagination-disabled-border to $pagination-hover-border-color, $pagination-active-border-color, $pagination-disabled-border-color, respectively * Rename variables $state-*-border to $state-*-border-color, respectively * Rename variables $alert-*-border to $alert-*-border-color * Rename $list-group-active-border to $list-group-active-border-color * Rename $table-inverse-border to $table-inverse-border-color * Rename $btn-*-border to $btn-*-border-color * Rename $navbar-*-toggler-border to $navbar-*-toggler-border-color
2017-04-16fixes #22244 by providing more specific guidance on input typesMark Otto1-1/+1
2017-04-16Merge branch 'v4-dev' into form-tweaksMark Otto68-675/+712
2017-04-16Prevent long words in `.card-title`s from breaking auto layoutMark Otto1-0/+1
2017-04-16Make "Copy" buttons actual buttonsPatrick H. Lauke2-2/+10
This makes them keyboard-accessible. For mouse users, the only change here is that the focus outline will remain on the button once clicked (in future, this can be solved with :focus-ring, but for now this would require a polyfill). the tooltip is explicitly hidden on `mouseleave`, so even though the `<button>` retains focus after clicking, the tooltip won't stay visible once mouse user moves away. the mouse hover styles have explicitly not been make to also apply to :focus, so as to minimise the visual impact for mouse users (though the tooltip remains visible) - but due to the default outline and the custom tooltip, it should be fairly clear when keyboard users set focus to a copy button too.
2017-04-16gruntMark Otto28-173/+100
2017-04-14Replace dropdown backdrop hack with cleaner JS-only hackPatrick H. Lauke4-26/+12
* 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-14remove dropdown.js reliance on roles and fix keyboard navigationPatrick H. Lauke2-218/+333
2017-04-13Merge branch 'v4-dev' into dropdown-keyboardPatrick H. Lauke1-1/+1
2017-04-13Fix popover arrow color for bottom positionIdan Cohen1-1/+1
2017-04-12Merge branch 'v4-dev' into dropdown-keyboardPierre Vanduynslager2-6/+7
2017-04-12Reword "mobile" to "touch-enabled"Patrick H. Lauke2-6/+7
...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-12Reword "mobile" to "touch-enabled"Patrick H. Lauke2-6/+7
...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 Vanduynslager14-32/+8
2017-04-12IndentPierre-Denis Vanduynslager1-1/+1
2017-04-11Remove inappropriate role="listbox" from carouselsPatrick H. Lauke3-6/+6
Closes #22061 Xref #22365
2017-04-11Remove inappropriate role="listbox" from carouselsPatrick H. Lauke3-6/+6
2017-04-10Package grunt (#22396)Mark Otto2-2/+1
Remove docs files and Gruntfile from package managers
2017-04-10Remove `cursor: not-allowed` stylesPatrick H. Lauke9-24/+1
Per discussion on https://github.com/twbs/bootstrap/issues/22222#issuecomment-292819959 > browsers don't normally use the "not-allowed" cursor in these circumstances, so it makes BS a bit opinionated here. (and, at least on Windows, the "not-allowed" cursor looks rather fugly with its red colour compared to other regular mouse pointers) > > ![capture](https://cloud.githubusercontent.com/assets/895831/24841663/1f9bbd46-1d81-11e7-9e96-54502b731edf.PNG) Closes https://github.com/twbs/bootstrap/issues/22222