Skip to content

Commit

Permalink
feat(btn-group): Adds button groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Wang authored and August Toman-Yih committed Aug 13, 2015
1 parent da960be commit f2ff18a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/pivotal-ui/components/alpha/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
```html
<!-- Please put an example here -->
<div class="btn-group" role="group" aria-label="...">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
```
36 changes: 36 additions & 0 deletions src/pivotal-ui/components/alpha/alpha.scss
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
/* PUT NEW COMPONENTS HERE!!!! */
@import "../pui-variables";

/*doc
---
title: Button Group
name: button-group
categories:
- Elements
- All
---
<code class="pam">
<i class="fa fa-download" alt="Install the Component">
npm install pui-css-buttons-group --save
</i>
</code>
Button groups wrap a series of buttons.
```html_example
<div class="btn-group btn-group-lg" role="group" aria-label="...">
<button type="button" class="btn btn-default">Left</button>
<button type="button" class="btn btn-default">Middle</button>
<button type="button" class="btn btn-default">Right</button>
</div>
```
*/

.btn-group {
.btn {
&.active, &:active {
color: $neutral-11;
background-color: $btn-default-color;
}
}
}
3 changes: 2 additions & 1 deletion src/pivotal-ui/components/alpha/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"description": "A playground for alpha examples",
"homepage": "http://styleguide.pivotal.io/",
"homepage": "http://styleguide.pivotal.io/elements#button-group",
"dependencies": {
"pui-css-bootstrap": "1.10.0"
},
"version": "0.0.1"
}

0 comments on commit f2ff18a

Please sign in to comment.