Skip to content

Commit

Permalink
Btn | Fix icon alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
onaliugo committed Feb 22, 2016
1 parent badc6fe commit 11eea37
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/css/tapestry.css
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,11 @@ th {
.Btn .Icon {
display: inline-block;
line-height: 1.57143rem;
vertical-align: top;
vertical-align: middle;
}

.Btn .Icon--s {
line-height: 1.17857rem;
}

.Btn + .Btn:not(.Btn--block) {
Expand Down
6 changes: 5 additions & 1 deletion src/scss/components/button/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
.Icon {
display: inline-block;
line-height: $base-lh;
vertical-align: top;
vertical-align: middle;
}

.Icon--s {
line-height: $lh--s;
}

+ .Btn:not(.Btn--block) {
Expand Down
6 changes: 6 additions & 0 deletions src/scss/components/button/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@
<i class="Btn-icon Icon Icon--like"></i>
Button with icon
</button>

<button class="Btn Btn--s">
<i class="Btn-icon Icon Icon--like Icon--s"></i>
Button with icon
</button>

<button class="Btn has-icon">
<i class="Btn-icon Icon Icon--like"></i>
Button with icon
Expand Down

0 comments on commit 11eea37

Please sign in to comment.