From f3d0fee91ec30aa6cde08de821b06fd6f337a3a3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 3 Jan 2017 19:24:24 -0800 Subject: [PATCH] fixes #21454 by revamping some docs styles for dropdowns --- docs/assets/scss/_component-examples.scss | 11 ----- docs/components/dropdowns.md | 60 +++++++++++------------ 2 files changed, 29 insertions(+), 42 deletions(-) diff --git a/docs/assets/scss/_component-examples.scss b/docs/assets/scss/_component-examples.scss index 908e30c494..cea237de0c 100644 --- a/docs/assets/scss/_component-examples.scss +++ b/docs/assets/scss/_component-examples.scss @@ -251,17 +251,6 @@ } } -// Example dropdowns -.bd-example > .dropdown > .dropdown-toggle { - float: left; -} -.bd-example > .dropdown > .dropdown-menu { - position: static; - display: block; - margin-bottom: .25rem; - clear: left; -} - // Example tabbable tabs .bd-example-tabs .nav-tabs { margin-bottom: 1rem; diff --git a/docs/components/dropdowns.md b/docs/components/dropdowns.md index d26de6eefa..3c68f94534 100644 --- a/docs/components/dropdowns.md +++ b/docs/components/dropdowns.md @@ -21,7 +21,7 @@ Wrap the dropdown's toggle (your button or link) and the dropdown menu within `. Any single `.btn` can be turned into a dropdown toggle with some markup changes. Here's how you can put them to work with either ` @@ -252,7 +252,7 @@ Button dropdowns work with buttons of all sizes, including default and split dro Separated link -
+
-
+
- + -
- - - +
+ + +
@@ -407,7 +405,7 @@ Trigger dropdown menus above elements by adding `.dropup` to the parent element. Historically dropdown menu contents *had* to be links, but that's no longer the case with v4. Now you can optionally use ` @@ -510,7 +508,7 @@ $('.dropdown-toggle').dropdown() {% endhighlight %} {% callout info %} -#### `data-toggle="dropdown"` still required +##### `data-toggle="dropdown"` still required Regardless of whether you call your dropdown via JavaScript or instead use the data-api, `data-toggle="dropdown"` is always required to be present on the dropdown's trigger element. {% endcallout %}