Skip to content

Commit

Permalink
feat(buttons): side by side buttons now have a -unit margin-left sepa…
Browse files Browse the repository at this point in the history
…rating them

[Finishes #143473153]

Signed-off-by: Stephane Jolicoeur <sjolicoeur@pivotal.io>
  • Loading branch information
Jonathan Berney authored and sjolicoeur committed May 9, 2017
1 parent 2a00730 commit 4968e29
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/src/pivotal-ui/components/buttons/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -548,3 +548,7 @@
fill: $btn-danger-color-hover;
}
}

.btn + .btn {
margin-left: $base-unit;
}
21 changes: 21 additions & 0 deletions styleguide/docs/css/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,25 @@ They can also be icon buttons.
</button>
```
*/

/*doc
---
title: Side-by-Side Buttons
name: 05_button_and_button
parent: button
---
Buttons side-by-side will be separated by a margin of `$base-unit`.
```html_example_table
<div>
<button class="btn btn-default-alt" type="button" aria-label="button">
Cancel
</button>
<button class="btn btn-default" type="button" aria-label="button">
Save
</button>
</div>
```
*/

0 comments on commit 4968e29

Please sign in to comment.