Fixed outline positioning for compact switches.

This commit is contained in:
Violet Rose 2020-09-06 18:01:51 -07:00
parent 2edccb2714
commit dd4bd7c489
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,9 @@
transform: translate(0, -50%) transform: translate(0, -50%)
width: 34px width: 34px
&.compact
left: -3px
.switch-label .switch-label
position: relative position: relative
display: inline-block display: inline-block

View File

@ -6,6 +6,7 @@
type="checkbox" type="checkbox"
name="set-name" name="set-name"
class="switch-input" class="switch-input"
:class="{compact}"
:checked="currentValue" :checked="currentValue"
@change="$emit('change', currentValue)" @change="$emit('change', currentValue)"
> >