Skip to content

Commit 930794c

Browse files
author
Adam Bradley
committed
fix(button): fix icon vertical alignments for IE 10
1 parent 98ee7ee commit 930794c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Diff for: scss/_button.scss

+9-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
position: relative;
1212
display: inline-block;
1313
margin: 0;
14-
padding: 1px $button-padding 0 $button-padding;
14+
padding: 0 $button-padding;
1515

1616
min-width: ($button-padding * 3) + $button-font-size;
1717
min-height: $button-height + 5px;
@@ -41,6 +41,7 @@
4141

4242
.icon {
4343
vertical-align: top;
44+
pointer-events: none;
4445
}
4546

4647
.icon:before,
@@ -51,7 +52,8 @@
5152
padding: 0 0 $button-border-width 0;
5253
vertical-align: inherit;
5354
font-size: $button-icon-size;
54-
line-height: $button-height - $button-border-width + 1;
55+
line-height: $button-height - $button-border-width;
56+
pointer-events: none;
5557
}
5658
&.icon-left:before {
5759
float: left;
@@ -125,18 +127,19 @@
125127
}
126128

127129
.button-small {
128-
padding: 0 $button-small-padding;
130+
padding: 2px $button-small-padding 1px;
129131
min-width: $button-small-height;
130-
min-height: $button-small-height + 3;
132+
min-height: $button-small-height + 2;
131133
font-size: $button-small-font-size;
132-
line-height: $button-small-height - $button-border-width + 1;
134+
line-height: $button-small-height - $button-border-width - 1;
133135

134136
.icon:before,
135137
&.icon:before,
136138
&.icon-left:before,
137139
&.icon-right:before {
138140
font-size: $button-small-icon-size;
139-
line-height: $button-small-height - $button-border-width - 1;
141+
line-height: $button-small-icon-size + 3;
142+
margin-top: 3px;
140143
}
141144
}
142145

0 commit comments

Comments
 (0)