[release-1.9] fix(theme): pick the navigation or rhdh colors based on user's config#2870
Conversation
Signed-off-by: Karthik <karthik.jk11@gmail.com>
Code Review by Qodo
1. Null override breaks sidebar colors
|
|
Review Summary by QodoFix navigation sidebar colors based on user configuration
WalkthroughsDescription• Add pageInsetBackgroundColor to theme palette for independent page inset styling • Implement intelligent color resolution between navigation and rhdh.general configs • Fix sidebar item selected/hover states to use navigation palette colors • Update light theme navigation background from dark to light color Diagramflowchart LR
A["User Theme Config"] -->|"navigation or rhdh.general"| B["resolveNavigationSidebarColors"]
B -->|"intelligent selection"| C["NavigationSidebarChrome"]
C -->|"applied to"| D["Component Overrides"]
D -->|"styled"| E["Sidebar & Navigation UI"]
F["pageInsetBackgroundColor"] -->|"new field"| G["Page Inset Styling"]
File Changes1. workspaces/theme/plugins/theme/src/types.ts
|
|
/approve |
|
@karthikjeeyar: you cannot LGTM your own PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Release-1.9 PR
This is a cherry-pick of 482ba12
https://redhat.atlassian.net/browse/RHDHBUGS-2981
The PR containss following chagns:
Align the navigation sidebar with merged palette.navigation and rhdh.general colors, including submenu rows and selected/active BackstageSidebarItem states.
Removes a theme override that set sidebarBackgroundColor in a way that applied the sidebar background color to main page inset.
Introduce a new token pageInsetBackgroundColor, so the page inset background can be controlled by config (defaults to appBarBackgroundColor).
Default RHDH without any customizations:
Customized sidebar background color states:
✔️ Checklist