fix: paint settings select dark-mode dropdown popover background

The Provider <select> in Settings used `bg-transparent`, leaving the
native dropdown popover unpainted. On Edge/Chromium with the
`.dark` theme the popover renders against a white surface despite
`color-scheme: dark` being set, leaving option text near-invisible
(reported in #433 with screenshots).

Switch the shared `selectClass` to `bg-[var(--background)]` so the
closed select keeps its current visual (--background matches the
form panel in every theme) and the opened popover inherits the
themed surface — `#1a1918` in dark, `#faf9f6` in light, equivalent
in theme-snow / theme-glass.

Closes #433.
This commit is contained in:
truffle
2026-05-02 07:06:09 +00:00
parent 144c90f3f7
commit 8d37a7ce4c

View File

@@ -205,7 +205,7 @@ const inputClass =
"w-full rounded-lg border border-[var(--border)] bg-transparent px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] placeholder:text-[var(--muted-foreground)]/40";
const selectClass =
"w-full appearance-none rounded-lg border border-[var(--border)] bg-transparent px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] cursor-pointer";
"w-full appearance-none rounded-lg border border-[var(--border)] bg-[var(--background)] px-3 py-2 text-[14px] text-[var(--foreground)] outline-none transition-colors focus:border-[var(--ring)] cursor-pointer";
function stringifyExtraHeaders(value: CatalogProfile["extra_headers"]): string {
if (!value) return "";