From 087c856a46afa126ff866c1c9cadbb76f2db42f3 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Wed, 26 Aug 2026 15:09:30 -0700 Subject: [PATCH] Theme the dropdown a native select paints for itself The From picker's drop-down rendered a light background under light text, unreadable in any dark theme (#70). A native 's dropdown is painted by the browser from the element's own + * colours, not the page's. `.from-select` is deliberately transparent so it + * sits flush in the composer's From line -- which left its popup with no + * background of its own, so the browser drew a light one while the text kept + * the app's light foreground: light on light, unreadable in any dark theme. + * + * Styling `option` fixes the popup without giving the closed control a box. + * Scoped to every select rather than this one, because nothing else in the app + * styled options either -- the next transparent select would have arrived with + * the same bug. + */ +select option, +select optgroup { background-color: var(--bg-elev); color: var(--fg); } .recipients { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; position: relative; } .recipients .chip { height: 24px; } .recipients input { flex: 1; min-width: 120px; border: 0; background: transparent; outline: none; height: 28px; }