Skip to content

Commit 7f94a62

Browse files
committed
vertically align checkbox w/ top:50% / negative margin to prevent android issues
1 parent acdcfe5 commit 7f94a62

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: scss/_checkbox.scss

+3-5
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@
8686
left: 4px;
8787
border: none;
8888
color: $checkbox-check-color;
89+
content: '\2713';
8990
font-weight: bold;
9091
font-size: 20px;
91-
content: '\2713';
9292
}
9393

9494
/* what the checkmark looks like when its checked */
@@ -107,11 +107,9 @@
107107

108108
/* position the checkbox to the left within an item */
109109
.item-checkbox .checkbox {
110-
@include display-flex();
111-
@include align-items(center);
112110
position: absolute;
113-
top: 0;
111+
top: 50%;
114112
left: $item-padding / 2;
115113
z-index: $z-index-item-checkbox;
116-
height: 100%;
114+
margin-top: (($checkbox-height + ($checkbox-height / 2)) / 2) * -1;
117115
}

0 commit comments

Comments
 (0)