@@ -37,7 +20,6 @@ onMounted(() => {
id="dark-toggle"
name="dark-toggle"
type="checkbox"
- :checked="isToggled"
ref="darkToggleEl"
@click="toggle"
/>
@@ -87,7 +69,7 @@ html.dark .toggle-wrapper {
transition: transform var(--transition), background var(--transition);
}
-.toggle.enabled::before {
+html.dark .toggle::before {
transform: translateX(calc(var(--scale)));
}