Skip to content

Commit 699ce3b

Browse files
committed
Fix light mode in Chrome
1 parent 7ac345c commit 699ce3b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

client/src/components/AutocompleteInput/_suggestions.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@
5959
background-color: $suggestions-bg-dark;
6060
}
6161

62-
@media (prefers-color-scheme: dark) {
63-
background-color: $suggestions-bg-dark;
62+
.w-theme-system & {
63+
@media (prefers-color-scheme: dark) {
64+
background-color: $suggestions-bg-dark;
65+
}
66+
@media (prefers-color-scheme: light) {
67+
background-color: $suggestions-bg; // ensure light background if OS is light
68+
}
6469
}
6570
}
6671

wagtailautocomplete/static/wagtailautocomplete/dist.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)