Skip to content

Commit 27f6a21

Browse files
authored
Merge pull request #1100 from livewire/josh/fix-select-default-variant-windows-dark
Fix select default variant background not dark in dark mode on Windows
2 parents 50d51bb + 3d9336f commit 27f6a21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stubs/resources/views/flux/select/variants/default.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
->add('text-zinc-700 dark:text-zinc-300')
2222
// Make the placeholder match the text color of standard input placeholders...
2323
->add('has-[option.placeholder:checked]:text-zinc-400 dark:has-[option.placeholder:checked]:text-zinc-400')
24+
// Options on Windows don't inherit dark mode styles, so we need to force them...
25+
->add('dark:[&>option]:bg-zinc-700 dark:[&>option]:text-white')
2426
->add('disabled:shadow-none')
2527
->add($invalid
2628
? 'border border-red-500'

0 commit comments

Comments
 (0)