Skip to content

Commit 0efaec5

Browse files
authored
fix issue with select options background on google chrome browser (#260)
* fix select options background for google chrome * replace color with variable * selector refactoring for dark theme select options bg
1 parent 6b5e494 commit 0efaec5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ html[data-theme='dark'] {
3131
--link-color: #b19cd9; /* Lighter purple for dark mode links */
3232
}
3333

34+
/* Fix for unreadable <select> options in Chrome's dark mode */
35+
[data-theme="dark"] select option {
36+
background: var(--background);
37+
}
38+
3439
@theme inline {
3540
--color-background: var(--background);
3641
--color-foreground: var(--foreground);

0 commit comments

Comments
 (0)