Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions workspaces/theme/.changeset/loud-glasses-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@red-hat-developer-hub/backstage-plugin-theme': patch
---

style the active sidebar nav link (a[aria-current="page"]) so selected colors match the resolved navigation shell
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,15 @@ export const createComponents = (themeConfig: ThemeConfig): Components => {
'& hr': {
backgroundColor: general.sidebarDividerColor,
},
'#rhdh-sidebar-layout & a[aria-current="page"], & a[aria-current="page"]':
{
background: `${sidebarItemInteractionBackgroundColor} !important`,
backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,
color: `${navigationSelectedColor} !important`,
'& .MuiTypography-root': {
color: 'inherit !important',
},
},
'& [class*="BackstageSidebarItem-selected-"][class*="BackstageSidebarItem-root-"]':
{
backgroundColor: `${sidebarItemInteractionBackgroundColor} !important`,
Expand Down
Loading