diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 382cbcef43..0c63fb3636 100644 Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ diff --git a/docs/components.html b/docs/components.html index 2a31528ea0..cb41c736ed 100644 --- a/docs/components.html +++ b/docs/components.html @@ -118,14 +118,34 @@

Button groups

Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.

-

You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.

-
-
+

Best practices

+

We recommend the following guidelines for using button groups and toolbars:

+
    +
  • Always use the same element in a single button group, <a> or <button>.
  • +
  • Don't mix buttons of different colors in the same button group.
  • +
  • Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.
  • +
+

Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.

+
+
+

Default example

+

Here's how the HTML looks for a standard button group built with anchor tag buttons:

+
+
+
+<div class="btn-group">
+  <a class="btn" href="#">1</a>
+  <a class="btn" href="#">2</a>
+  <a class="btn" href="#">3</a>
+</div>
+
+

Toolbar example

+

Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.

1 @@ -142,18 +162,6 @@ 8
-
-
-

Example markup

-

Here's how the HTML looks for a standard button group built with anchor tag buttons:

-
-<div class="btn-group">
-  <a class="btn" href="#">1</a>
-  <a class="btn" href="#">2</a>
-  <a class="btn" href="#">3</a>
-</div>
-
-

And with a toolbar for multiple groups:

 <div class="btn-toolbar">
   <div class="btn-group">
diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
index 2262830041..62a7083b61 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -42,14 +42,34 @@
     

{{_i}}Button groups{{/i}}

{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a> or <button> elements.{{/i}}

-

{{_i}}You can also combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex projects.{{/i}}

-
-
+

{{_i}}Best practices{{/i}}

+

{{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}

+
    +
  • {{_i}}Always use the same element in a single button group, <a> or <button>.{{/i}}
  • +
  • {{_i}}Don't mix buttons of different colors in the same button group.{{/i}}
  • +
  • {{_i}}Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.{{/i}}
  • +
+

{{_i}}Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}

+
+
+

{{_i}}Default example{{/i}}

+

{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}

+ +
+<div class="btn-group">
+  <a class="btn" href="#">1</a>
+  <a class="btn" href="#">2</a>
+  <a class="btn" href="#">3</a>
+</div>
+
+

{{_i}}Toolbar example{{/i}}

+

{{_i}}Combine sets of <div class="btn-group"> into a <div class="btn-toolbar"> for more complex components.{{/i}}

1 @@ -66,18 +86,6 @@ 8
-
-
-

{{_i}}Example markup{{/i}}

-

{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}

-
-<div class="btn-group">
-  <a class="btn" href="#">1</a>
-  <a class="btn" href="#">2</a>
-  <a class="btn" href="#">3</a>
-</div>
-
-

{{_i}}And with a toolbar for multiple groups:{{/i}}

 <div class="btn-toolbar">
   <div class="btn-group">