From bd3a07a700c0cbd7740643de5a8d9cbbe607cfa8 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Sat, 24 Oct 2026 13:06:16 +0000 Subject: [PATCH] fix(switch): center thumb vertically within track --- assets/docs/components/switch.md | 1 + components/ui/switch.py | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/docs/components/switch.md b/assets/docs/components/switch.md index 3a718da6..b497600e 100644 --- a/assets/docs/components/switch.md +++ b/assets/docs/components/switch.md @@ -74,6 +74,7 @@ class ClassNames: INPUT = "peer sr-only" TRACK = ( + "inline-flex items-center " "relative rounded-full bg-muted " "outline-none " "group-data-[size=default]/switch:h-[18.4px] group-data-[size=default]/switch:w-[32px] " diff --git a/components/ui/switch.py b/components/ui/switch.py index 9f367a0d..9ec2ffe5 100644 --- a/components/ui/switch.py +++ b/components/ui/switch.py @@ -10,6 +10,7 @@ class ClassNames: INPUT = "peer sr-only" TRACK = ( + "inline-flex items-center " "relative rounded-full bg-muted " "outline-none " "group-data-[size=default]/switch:h-[18.4px] group-data-[size=default]/switch:w-[32px] "