fix: restore input/dropdown backgrounds broken by HA 2026.4#128
Merged
TilmanGriesel merged 2 commits intoTilmanGriesel:mainfrom Apr 19, 2026
Merged
fix: restore input/dropdown backgrounds broken by HA 2026.4#128TilmanGriesel merged 2 commits intoTilmanGriesel:mainfrom
TilmanGriesel merged 2 commits intoTilmanGriesel:mainfrom
Conversation
Contributor
Author
|
Hover effect is still white. Will also work on a fix... [EDIT] |
Owner
|
@michikrug Thank you for the contribution! Will validate and merge soon |
|
@TilmanGriesel any ETA on the release please? |
Owner
|
@daviddanko Released today 🚀 |
|
Great work @michikrug! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Transparency Note: The analysis and fix was done with AI (Copilot using Claude Sonnet 4.6)
Problem
Home Assistant 2026.4 migrated several UI components (
ha-combo-box,ha-dropdown, etc.) to Web Awesome (WA) components. These new components rely on CSS variables that were not previously defined in custom themes:--ha-color-form-background— used byha-combo-box-itemfor item backgrounds; defaults to--ha-color-neutral-95(~#f3f3f3, white)--wa-color-surface-raised— used byha-dropdownfor the dropdown surface; defaults tovar(--mdc-theme-surface, #fff)(white)--wa-form-control-background-color— chains from--wa-color-surface-raisedIn themes that use
modes: light: / dark:, HA applies its owndarkSemanticColorStylesbase layer which overrides these variables to dark neutrals.In flat (non-modes) themes like Graphite and Graphite E-ink Dark, no such override is applied, so all three variables fall back to white — rendering input boxes and dropdowns as white-on-dark-card, completely unreadable.
Fix
Map the new HA/WA variables to the existing token system in both templates so the correct dark/light values are used in every variant:
Additionally, three pre-existing variable bugs that were masked in auto mode but visible in flat themes are corrected:
input-background-token-color-disabled:invalidrgba(var(...), 0.5)syntax replaced withcolor-mix(in srgb, ... 50%, transparent)input-idle-line-color:referenced undefined--background-color;changed to--primary-background-colormdc-select-idle-line-color:near-black value on dark cards changed to--divider-colorfor visibilityAffected themes
All five generated theme files are updated: Graphite, Graphite Light, Graphite Auto, Graphite E-ink Dark, Graphite E-ink Light.