Skip to content

Commit

Permalink
fix(radio-checkbox): fix alignment of input with text (#58)
Browse files Browse the repository at this point in the history
fix #51
  • Loading branch information
adamraider authored Mar 18, 2019
1 parent 21cfe1b commit 414e672
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@include exports('ray-radio-checkbox') {
$ray-radio-checkbox-border-width: 3px;
$ray-radio-checkbox-width: 1rem;
$ray-radio-checkbox-size: 16px;

.#{$ray-class-prefix}radio,
.#{$ray-class-prefix}checkbox {
Expand All @@ -18,13 +18,14 @@
content: '';
background-color: $ray-color-white;
border: $ray-radio-checkbox-border-width double $ray-color-black;
width: $ray-radio-checkbox-width;
height: $ray-radio-checkbox-width;
width: $ray-radio-checkbox-size;
height: $ray-radio-checkbox-size;
position: relative;
transition: box-shadow 0.15s ease;
display: inline-block;
margin-right: 1rem;
top: 4px;
// centers the input with the first line of text in the label
top: ($ray-field-line-height - $ray-radio-checkbox-size) / 2;
}

&:focus {
Expand Down

0 comments on commit 414e672

Please sign in to comment.