fix: use correct id

This commit is contained in:
2022-08-12 21:04:50 -04:00
parent 7925c5b4e7
commit df5085c41d
6 changed files with 13 additions and 83 deletions

View File

@@ -27,7 +27,7 @@ onMounted(() => {
</script>
<template>
<label for="toggle" :class="['toggle-wrapper']">
<label for="dark-toggle" :class="['toggle-wrapper']">
<div :class="['toggle', isToggled ? 'enabled' : 'disabled']">
<div class="icons">
<IconMoon />
@@ -35,7 +35,7 @@ onMounted(() => {
</div>
<input
id="dark-toggle"
name="toggle"
name="dark-toggle"
type="checkbox"
:checked="isToggled"
ref="darkToggleEl"