Fixed outline positioning for compact switches.
This commit is contained in:
parent
2edccb2714
commit
dd4bd7c489
|
@ -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
|
||||||
|
|
|
@ -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)"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue