summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/switch.css
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ui/src/components/switch.css')
-rw-r--r--packages/ui/src/components/switch.css4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/ui/src/components/switch.css b/packages/ui/src/components/switch.css
index 89e844732..579930f55 100644
--- a/packages/ui/src/components/switch.css
+++ b/packages/ui/src/components/switch.css
@@ -86,9 +86,9 @@
background-color: var(--surface-hover);
}
- &:focus-within:not([data-readonly]) [data-slot="switch-control"] {
+ &:not([data-readonly]) [data-slot="switch-input"]:focus-visible ~ [data-slot="switch-control"] {
border-color: var(--border-focus);
- box-shadow: 0 0 0 2px var(--surface-focus);
+ box-shadow: var(--shadow-xs-border-focus);
}
&[data-checked] [data-slot="switch-control"] {