Skip to content

Commit 65212b1

Browse files
fix: remove border opacity on toggle (#1011)
Co-authored-by: Luke Warlow <lwarlow@igalia.com>
1 parent 508505a commit 65212b1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/components/Settings/Toggle.client.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ const checked = defineModel<boolean>({
2121
{{ label }}
2222
</span>
2323
<span
24-
class="relative inline-flex h-6 w-11 shrink-0 items-center rounded-full border-2 transition-colors duration-200 ease-in-out motion-reduce:transition-none cursor-pointer"
25-
:class="checked ? 'bg-accent border-transparent shadow-sm' : 'bg-bg border border-border/50'"
24+
class="inline-flex items-center h-6 w-11 shrink-0 rounded-full border p-0.25 transition-colors duration-200 shadow-sm ease-in-out motion-reduce:transition-none cursor-pointer"
25+
:class="checked ? 'bg-accent border-accent' : 'bg-fg/50 border-fg/50'"
2626
aria-hidden="true"
2727
>
2828
<span
29-
class="pointer-events-none inline-block h-5 w-5 rounded-full shadow-sm ring-0 transition-transform duration-200 ease-in-out motion-reduce:transition-none"
30-
:class="checked ? 'bg-bg' : 'bg-fg-muted'"
29+
class="block h-5 w-5 rounded-full bg-bg shadow-sm transition-transform duration-200 ease-in-out motion-reduce:transition-none"
3130
/>
3231
</span>
3332
</button>

0 commit comments

Comments
 (0)