Skip to content

Commit

Permalink
fix(button): Tweak vertical alignment of button icons, closes #739
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Mar 10, 2014
1 parent 24524f7 commit 7ec0605
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scss/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
padding: 0 0 $button-border-width 0;
vertical-align: inherit;
font-size: $button-icon-size;
line-height: $button-height - $button-border-width;
line-height: $button-height - $button-border-width + 1;
}
&.icon-left:before {
float: left;
Expand Down Expand Up @@ -164,7 +164,7 @@
border-color: transparent;
background: none;

&.button:active,
&.button:active,
&.button.active {
border-color: transparent;
background: none;
Expand Down Expand Up @@ -206,8 +206,8 @@
.button-block {
display: block;
clear: both;
&:after {

&:after {
clear: both;
}
}
Expand Down
5 changes: 3 additions & 2 deletions test/html/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=1 ); /* IE6-9 */
}
</style>
<script src="../dist/js/ionic.bundle.js"></script>
<script src="../../dist/js/ionic.bundle.js"></script>
<script>
angular.module('ionicApp', ['ionic'])
</script>
Expand Down Expand Up @@ -67,7 +67,8 @@ <h3>a.button default</h3>
<a class="button button-assertive"><i class="icon ion-home"></i></a>
<a class="button button-energized"><i class="icon ion-home"></i> .button-energized</a>
<a class="button button-royal">.button-royal</a>
<a class="button button-dark"><i class="icon ion-home"></i> .button-dark</a>
<a class="button button-dark"><i class="icon ion-chevron-right"></i> .button-dark</a>
<a class="button button-energized icon-right ion-chevron-right">Login</a>
</p>

<hr>
Expand Down

0 comments on commit 7ec0605

Please sign in to comment.