From 202e20b8037bc5d1e4fb290e89979a462fadd84e Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 3 Feb 2023 20:58:12 -0800 Subject: [PATCH] Fix switch positions --- components/Switch/index.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/Switch/index.scss b/components/Switch/index.scss index c5783d0d..abcc2cc6 100644 --- a/components/Switch/index.scss +++ b/components/Switch/index.scss @@ -3,6 +3,8 @@ background: $grey-70; border-radius: calc($height / 2); border: none; + padding-left: $unit-half; + padding-right: $unit-half; position: relative; width: 58px; height: $height; @@ -36,7 +38,7 @@ height: 26px; width: 26px; transition: transform 100ms; - transform: translateX(-1px); + transform: translateX(0px); &:hover { cursor: pointer; @@ -44,6 +46,6 @@ &[data-state='checked'] { background: $grey-100; - transform: translateX(21px); + transform: translateX(24px); } }