Skip to content

Commit

Permalink
docs(btn-toolbar): add a flex-wrap class to btn-toolbar waiting for a…
Browse files Browse the repository at this point in the history
… better solution if exists see bootstrap issue twbs/bootstrap#21699
  • Loading branch information
Lausselloic committed Jan 13, 2017
1 parent 406f8b3 commit 91b6ca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/components/button-group.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Wrap a series of buttons with `.btn` in `.btn-group`.
Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.

{% example html %}
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-toolbar flex-wrap" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary">1</button>
<button type="button" class="btn btn-secondary">2</button>
Expand All @@ -50,7 +50,7 @@ Combine sets of button groups into button toolbars for more complex components.
Feel free to mix input groups with button groups in your toolbars. Similar to the example above, you'll likely need some utilities though to space things properly.

{% example html %}
<div class="btn-toolbar mb-3" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-toolbar flex-wrap mb-3" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary">1</button>
<button type="button" class="btn btn-secondary">2</button>
Expand All @@ -63,7 +63,7 @@ Feel free to mix input groups with button groups in your toolbars. Similar to th
</div>
</div>

<div class="btn-toolbar justify-content-between" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-toolbar flex-wrap justify-content-between" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary">1</button>
<button type="button" class="btn btn-secondary">2</button>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/dropdowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ We use this extra class to reduce the horizontal `padding` on either side of the
Button dropdowns work with buttons of all sizes, including default and split dropdown buttons.

<div class="bd-example">
<div class="btn-toolbar" role="toolbar">
<div class="btn-toolbar flex-wrap" role="toolbar">
<div class="btn-group">
<button class="btn btn-secondary btn-lg dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Large button
Expand All @@ -266,7 +266,7 @@ Button dropdowns work with buttons of all sizes, including default and split dro
</div>
</div><!-- /btn-group -->
</div><!-- /btn-toolbar -->
<div class="btn-toolbar" role="toolbar">
<div class="btn-toolbar flex-wrap" role="toolbar">
<div class="btn-group">
<button class="btn btn-secondary btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Small button
Expand Down

0 comments on commit 91b6ca7

Please sign in to comment.