Fix positioning of thumb in switch
We were using translateX to move the switch and animate it with transform, but the page refreshes immediately after you tap it so it doesn't matter.
This commit is contained in:
parent
dd062aff8d
commit
dc99c9b525
1 changed files with 4 additions and 3 deletions
|
|
@ -88,8 +88,9 @@
|
|||
display: block;
|
||||
height: $diameter;
|
||||
width: $diameter;
|
||||
transition: transform 100ms;
|
||||
transform: translateX(-2px);
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
z-index: 3;
|
||||
|
||||
&:hover {
|
||||
|
|
@ -98,7 +99,7 @@
|
|||
|
||||
&[data-state='checked'] {
|
||||
background: $grey-100;
|
||||
transform: translateX(17px);
|
||||
left: 23px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue