diff --git a/src/components/Base/BaseSwitch.vue b/src/components/Base/BaseSwitch.vue
index 34a8504ad0..b475a40b20 100644
--- a/src/components/Base/BaseSwitch.vue
+++ b/src/components/Base/BaseSwitch.vue
@@ -2,7 +2,9 @@
{{ checked ? checkedLabel : uncheckedLabel }}
-
+
+
+
@@ -52,18 +54,23 @@ const checked = defineModel("checked", { required: true });
}
.SwitchThumb {
- display: block;
+ display: grid;
+ place-items: center;
+ color: transparent;
width: 20px;
height: 20px;
background-color: white;
border-radius: 50%;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
- transition: transform vars.$transition-duration;
+ transition:
+ transform vars.$transition-duration,
+ color vars.$transition-duration;
will-change: transform;
}
.SwitchThumb[data-state="checked"] {
transform: translateX(16px);
+ color: colors.$primary;
}
.label {