Change header-panel-bg-hover to use var(--cpd-color-bg-action-secondary-hovered) for better custom theming#31457
Merged
t3chguy merged 5 commits intoelement-hq:developfrom Dec 9, 2025
Conversation
header-panel-bg-hover to use var(--cpd-color-bg-action-secondary-hovered) for better custom theming
Member
|
The |
Member
The room header is a giant button, how isn't that an action? |
Member
|
Oh sorry, i though it was the header of the room list, not the room. The token seems correct indeed but we still design approval/update on figma design |
|
Makes sense, Ok for using bg-action-secondary-hovered |
gaelledel
approved these changes
Dec 9, 2025
t3chguy
approved these changes
Dec 9, 2025
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.
Apologies if my terminology is weird, I do not have any background in graphic design or UI/UX.
Right now,
header-panel-bg-hoverbeing set tovar(--cpd-color-gray-200)messes with custom themes as any changes in the custom theme's JSON are overridden by the default value, and you get weird looking room headers on hover when colors are drastically different from the default. However,--cpd-color-gray-200's values (24,26,31 for the first-party Dark theme, and 248,249,250 for the Light theme) are exactly the same asvar(--cpd-color-bg-action-secondary-hovered), so I figured that using an already existing variable that already has the correct values would keep the default themes as-is and allow more customization in custom themes. I did not change this value in thelegacythemes because I did not know if those CSS files were applied or if that would break something else.Checklist
public/exportedsymbols have accurate TSDoc documentation.