fix: invert toggle logic and add styling
This commit is contained in:
@@ -133,11 +133,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
input:checked+.slider {
|
input:checked+.slider {
|
||||||
background-color: #05254a;
|
background-color: #64adac;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus+.slider {
|
input:focus+.slider {
|
||||||
box-shadow: 0 0 1px #05254a;
|
box-shadow: 0 0 1px #64adac;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:checked+.slider:before {
|
input:checked+.slider:before {
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ export default function SideBar({
|
|||||||
setTheme(theme === 'light' ? 'dark' : 'light')
|
setTheme(theme === 'light' ? 'dark' : 'light')
|
||||||
}
|
}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
checked={theme === 'dark'}
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
className={`${styles.slider} ${styles.round}`}
|
className={`${styles.slider} ${styles.round}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user