[UI] Fix native browser controls dark mode (color-scheme sync)
Add html.dark/html.light color-scheme rules to app.css so native controls (select dropdowns, scrollbars, date pickers) follow the app's class-based dark mode rather than the OS theme.
This commit is contained in:
@@ -6,6 +6,12 @@
|
||||
This makes the dark/light toggle in e_app_theme.svelte actually work. */
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
/* Sync native browser control rendering (select dropdowns, scrollbars, etc.)
|
||||
with the app's dark/light mode toggle. Without this, native controls follow
|
||||
the OS theme rather than the app's .dark/.light class on <html>. */
|
||||
html.dark { color-scheme: dark; }
|
||||
html.light { color-scheme: light; }
|
||||
|
||||
@import '@skeletonlabs/skeleton';
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user