Skip to content

Commit

Permalink
fix(checkbox): fix IE9 layout
Browse files Browse the repository at this point in the history
  • Loading branch information
byjs-dev committed May 9, 2019
1 parent d5b19f9 commit 4cf2cd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/elements/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// get our borderwidth in rems
$borderWidth: (2 / (2 * 0 + 1) / $baseFont) * 1rem;
$boxSize: $base/1.7;

.#{$prefix}checkbox {
.#{$prefix}checkbox__label {
cursor: pointer;
Expand All @@ -28,6 +29,8 @@
position: absolute;
top: $base/4.75;
left: 0;
right: 0;
bottom: 0;
width: $boxSize;
height: $boxSize;
border-radius: 0;
Expand Down Expand Up @@ -57,9 +60,14 @@
@include themify($themes) {
&:checked + .#{$prefix}checkbox__label:before {
content: '\2713';
position: absolute;
top: $base/4.75;
left: 0;
right: 0;
bottom: 0;
display: inline-block;
background: map-get($colormap-base, white);
line-height: $boxSize + $borderWidth;
line-height: 1; //$boxSize + $borderWidth;
font-size: 1.125rem;
text-align: center;
transform: scale(1);
Expand Down

0 comments on commit 4cf2cd6

Please sign in to comment.