Skip to content

Commit

Permalink
fix(buttonIcon): float left icon-left, closes #515
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Feb 10, 2014
1 parent 0c50fec commit 38420c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scss/_button-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
text-overflow: ellipsis;
white-space: nowrap;

&:before,
.icon:before {
line-height: 44px;
}

&:first-child {
border-radius: 2px 0px 0px 2px;
}
Expand Down
1 change: 1 addition & 0 deletions scss/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
line-height: $button-height - $button-border-width;
}
&.icon-left:before {
float: left;
padding-right: .2em;
padding-left: 0;
}
Expand Down
9 changes: 8 additions & 1 deletion test/button-bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ <h1 class="title">Button Bar</h1>
</div>
</p>

<p><a class="button button-secondary" href="index.html">Homepage</a></p>
<p>
<div class="button-bar">
<a class="button icon-left ion-chevron-left button-outline">Cancel</a>
<a class="button icon-right ion-chevron-right button-positive">Register</a>
</div>
</p>

<p><a class="button button-secondary" href="./">All CSS Tests</a></p>
</main>

</body>
Expand Down
2 changes: 1 addition & 1 deletion test/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ <h3>button.button-block.button-full on each button and nothing on the parent</h3
</p>

<p>
<a class="button button-assertive" href="index.html">Homepage</a>
<a class="button button-assertive" href="./">All CSS Tests</a>
</p>

<hr>
Expand Down

0 comments on commit 38420c8

Please sign in to comment.