aboutsummaryrefslogtreecommitdiff
path: root/docs/components/dropdowns.md
AgeCommit message (Collapse)AuthorFilesLines
2017-05-29Rearrange all the docs to allow for a docs/major.minor/ setupMark Otto1-590/+0
2017-05-27update components docsMark Otto1-8/+4
2017-05-24Update Popper.js to 1.9.9Johann-S1-1/+1
2017-05-17Update Popper.js 1.9.4Johann-S1-1/+1
2017-05-14Update Popper.js 1.9.3Johann-S1-1/+1
2017-05-14Update Popper.js 1.9.1 + Update documentation about Dropdown placementJohann-S1-2/+2
2017-05-14Allow to disable flip behaviour on Dropdown + documentationJohann-S1-1/+7
2017-05-14Update Popper.js 1.8.2Johann-S1-1/+1
2017-05-14Add an update method to allow to update position for ↵Johann-S1-0/+1
Tooltip/Popover/Dropdown manually
2017-05-14Remove totaly Tether from documentation + dependenciesJohann-S1-2/+36
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-14Replace dropdown backdrop hack with cleaner JS-only hackPatrick H. Lauke1-1/+3
* 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-12Reword "mobile" to "touch-enabled"Patrick H. Lauke1-1/+1
...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-01-03fixes #21454 by revamping some docs styles for dropdownsMark Otto1-31/+29
2016-12-07Rename `.active` to `.show`Starsam801-4/+4
2016-10-27Docfix: Typo default -> secondary, and reorderEinar Gangsø1-6/+6
2016-10-25Use a single class name for opened/expanded/shown state of widgetsJohann-S1-4/+4
2016-10-03Fix broken/redirected links, moving to HTTPS where possible. (#20557)Bardi Harborow1-1/+1
2016-10-02v4: Social meta tags (#20825)Mark Otto1-0/+1
* descriptions for getting started pages * descriptions for layout * add content page descriptions * more descriptions, updates to some existing ones * correct site url * add social stuff to config for twitter cards * add twitter meta tags; use large image for homepage and regular card for all others * add the assets * more site config * more social shiz to partial, remove existing meta for the partial, remove page title from homepage for simpler if statements
2016-08-21fixes #19930: update split dropup variation to include modifierMark Otto1-1/+1
2016-08-02Fix dropdown example in docs (Fix #20410)Pierre-Denis Vanduynslager1-15/+1
2016-05-11Consolidate button-dropdown.md with dropdowns.md to simplify docsMark Otto1-8/+381
2016-02-18Docs: Add example of .dropdown-menu-rightJeremy Kratz1-6/+11
Fixes #18493 Closes #18836 [skip sauce]
2015-08-25Fix validation errors.XhmikosR1-2/+2
2015-08-24Document that dropdowns are intentionally click-based rather than hover-basedChris Rebert1-1/+1
And link to a relevant blog post w/ more info. Refs #16966 [skip sauce]
2015-08-17typoMark Otto1-1/+1
2015-08-17allow <button> elements as .dropdown-item'sMark Otto1-0/+19
2015-08-17Rewrite dropdownsMark Otto1-53/+29
- Remove nested > selectors for dropdown items - Update docs examples to use all the new markup
2015-08-14Massive cleanupMark Otto1-1/+1
- Simpler main nav on all pages - Back to purple masthead on homepage instead of dark graphite - Active link styles on the main nav - Cleaned up sidebar nav - New docs layout name - Homepage copy edits - Updated bright purple docs color
2015-08-10dropdown fixes and dropdown docs tweaksMark Otto1-6/+4
2015-08-10rewrite dropdown events in markdownMark Otto1-32/+10
2015-08-05restore page headers, use partial and page frontmatter to organize itMark Otto1-0/+1
2015-06-18Merge branch 'master' into v4Mark Otto1-38/+36
2015-05-29add markdown toc stuffMark Otto1-0/+5
2015-04-16Redo all our callouts with the custom callout pluginMark Otto1-8/+10
- Replaces manual use of .bd-callout with {% callout [type] %} - Rearranged some callouts for proximity to others - Turned long lists of callouts--like those on tooltips, plugings, etc--into a list because holy shit that's overwhelming
2015-04-16rename classes from .bs-docs and .bs to .bdMark Otto1-2/+2
2015-03-30Consolidate dropdown docs into single pageMark Otto1-6/+107
2014-09-17Merge branch 'master' into derpMark Otto1-1/+1
Conflicts: Gruntfile.js dist/css/bootstrap-theme.css.map dist/css/bootstrap.css dist/css/bootstrap.css.map dist/css/bootstrap.min.css dist/fonts/glyphicons-halflings-regular.svg docs/_includes/components/badges.html docs/_includes/components/input-groups.html docs/_includes/components/pagination.html docs/_includes/css/forms.html docs/_includes/footer.html docs/_includes/getting-started/browser-device-support.html docs/_includes/getting-started/grunt.html docs/_includes/home-nav.html docs/_includes/js/alerts.html docs/_includes/js/buttons.html docs/_includes/js/carousel.html docs/_includes/js/collapse.html docs/_includes/js/modal.html docs/_includes/js/popovers.html docs/_includes/js/tooltips.html docs/_includes/nav/getting-started.html docs/_includes/nav/javascript.html docs/assets/css/docs.min.css docs/assets/css/src/docs.css docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/browser-bugs.html docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css docs/dist/fonts/glyphicons-halflings-regular.svg fonts/glyphicons-halflings-regular.svg less/_button-group.less less/_jumbotron.less less/_variables.less less/mixins/vendor-prefixes.less less/panels.less less/thumbnails.less package.json
2014-07-11rearrange docs componentsMark Otto1-0/+100