Skip to content

Commit 258e1a0

Browse files
Merge pull request #461 from loo41/features/radio-center
fix(radio): fix radio before element center
2 parents c875ffa + 27817d6 commit 258e1a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scss/form/radios.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131

3232
& + span {
3333
position: relative;
34+
display: inline-flex;
35+
align-items: center;
3436
cursor: $cursor-click-url, pointer;
3537
}
3638

3739
&:checked + span::before {
3840
position: absolute;
39-
top: -2px;
4041
left: -20px;
42+
margin-top: -15px;
4143
content: "";
4244

4345
@include pixelize(2px, $radio, $colors);

0 commit comments

Comments
 (0)