Skip to content

Commit

Permalink
Merge pull request #90 from primer/btn_group_options
Browse files Browse the repository at this point in the history
.btn and .button_to spacing in .btn-group
  • Loading branch information
mdo committed Apr 15, 2015
2 parents 8b81ac9 + d12f5b5 commit 111e4d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,20 @@ Have a hankering for a series of buttons that are attached to one another? Wrap
</div>
{% endexample %}

Add `.button_to` to `<form>`s within `.btn-group`s for proper spacing and rounded corners.

**Heads up!** This class name is inconsistent and will change in the next major version.

{% example html %}
<div class="btn-group">
<form class="button_to">
<button class="btn" type="button">Button in a form</button>
</form>
<button class="btn" type="button">Button</button>
<button class="btn" type="button">Button</button>
</div>
{% endexample %}

## Hidden text button

Use `.hidden-text-expander` to indicate and toggle hidden text.
Expand Down
2 changes: 2 additions & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@
}
}

.btn + .button_to,
.button_to + .btn,
.button_to + .button_to {
margin-left: -1px;
}
Expand Down

0 comments on commit 111e4d2

Please sign in to comment.