Skip to content

Commit 4cf2cd6

Browse files
committed
fix(checkbox): fix IE9 layout
1 parent d5b19f9 commit 4cf2cd6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/elements/checkbox/_checkbox.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// get our borderwidth in rems
99
$borderWidth: (2 / (2 * 0 + 1) / $baseFont) * 1rem;
1010
$boxSize: $base/1.7;
11+
1112
.#{$prefix}checkbox {
1213
.#{$prefix}checkbox__label {
1314
cursor: pointer;
@@ -28,6 +29,8 @@
2829
position: absolute;
2930
top: $base/4.75;
3031
left: 0;
32+
right: 0;
33+
bottom: 0;
3134
width: $boxSize;
3235
height: $boxSize;
3336
border-radius: 0;
@@ -57,9 +60,14 @@
5760
@include themify($themes) {
5861
&:checked + .#{$prefix}checkbox__label:before {
5962
content: '\2713';
63+
position: absolute;
64+
top: $base/4.75;
65+
left: 0;
66+
right: 0;
67+
bottom: 0;
6068
display: inline-block;
6169
background: map-get($colormap-base, white);
62-
line-height: $boxSize + $borderWidth;
70+
line-height: 1; //$boxSize + $borderWidth;
6371
font-size: 1.125rem;
6472
text-align: center;
6573
transform: scale(1);

0 commit comments

Comments
 (0)