From db3dcb7c66457ca4ff2531c339e55c63dc52d576 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 10 Aug 2017 22:38:45 -0700 Subject: Mention util.js on all JS plugin pages (#22955) Fixes #20660 --- docs/4.0/components/dropdowns.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 9170b7162..9f444d567 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -12,6 +12,8 @@ Dropdowns are toggleable, contextual overlays for displaying lists of links and Dropdowns are built on a third party library, [Popper.js](https://popper.js.org), which provides dynamic positioning and viewport detection. Be sure to include [popper.min.js](https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js) before Bootstrap's JavaScript. +If you're building our JS from source, it [requires `util.js`]({{ site.baseurl }}/docs/getting-started/javascript/#util). + ## Accessibility The [WAI ARIA](https://www.w3.org/TR/wai-aria/) standard defines an actual [`role="menu"` widget](https://www.w3.org/TR/wai-aria/roles#menu), but this is specific to application-like menus which trigger actions or functions. ARIA menus can only contain menu items, checkbox menu items, radio button menu items, radio button groups, and sub-menus. -- cgit v1.2.3 From d23813988a0d0f96aae566ff13f6419ee97e7418 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sat, 17 Jun 2017 20:56:26 -0700 Subject: Add examples of forms in dropdown menus --- docs/4.0/components/dropdowns.md | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 9f444d567..15f810be8 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -474,6 +474,55 @@ Separate groups of related menu items with a divider. {% endexample %} +## Menu forms + +Put a form within a dropdown menu, or make it into a dropdown menu, and use [margin or padding utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/spacing/) to give it the negative space you require. + +{% example html %} + +{% endexample %} + +{% example html %} + +{% endexample %} + ## Disabled menu items Add `.disabled` to items in the dropdown to **style them as disabled**. -- cgit v1.2.3 From 61e8aa2a55dfb57c36d254d8ee9daca8753edcf1 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 11 Aug 2017 12:43:17 +0300 Subject: Fix HTML validation errors. --- docs/4.0/components/dropdowns.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/4.0/components/dropdowns.md') diff --git a/docs/4.0/components/dropdowns.md b/docs/4.0/components/dropdowns.md index 15f810be8..6ebce5f04 100644 --- a/docs/4.0/components/dropdowns.md +++ b/docs/4.0/components/dropdowns.md @@ -510,8 +510,8 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use [mar
- - + +