Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Improve Toggle input accessibility and styling
Richie McIlroyc3c0f3492c34
diff --git a/apps/desktop/src/components/Toggle.tsx b/apps/desktop/src/components/Toggle.tsxindex 60f29d664..c16036fd3 100644--- a/apps/desktop/src/components/Toggle.tsx+++ b/apps/desktop/src/components/Toggle.tsx@@ -40,8 +40,8 @@ export function Toggle(const [local, others] = splitProps(props, ["size"]);return (- <KSwitch {...others}>- <KSwitch.Input class="peer" />+ <KSwitch class="relative" {...others}>+ <KSwitch.Input class="peer absolute inset-0 opacity-0 cursor-pointer" /><KSwitch.Control class={toggleControlStyles({ size: local.size })}><KSwitch.Thumb class={toggleThumbStyles({ size: local.size })} /></KSwitch.Control>