File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @red-hat-developer-hub/backstage-plugin-theme ' : patch
3+ ---
4+
5+ 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 @@ -635,6 +635,15 @@ export const createComponents = (themeConfig: ThemeConfig): Components => {
635635 '& hr' : {
636636 backgroundColor : general . sidebarDividerColor ,
637637 } ,
638+ '#rhdh-sidebar-layout & a[aria-current="page"], & a[aria-current="page"]' :
639+ {
640+ background : `${ sidebarItemInteractionBackgroundColor } !important` ,
641+ backgroundColor : `${ sidebarItemInteractionBackgroundColor } !important` ,
642+ color : `${ navigationSelectedColor } !important` ,
643+ '& .MuiTypography-root' : {
644+ color : 'inherit !important' ,
645+ } ,
646+ } ,
638647 '& [class*="BackstageSidebarItem-selected-"][class*="BackstageSidebarItem-root-"]' :
639648 {
640649 backgroundColor : `${ sidebarItemInteractionBackgroundColor } !important` ,
You can’t perform that action at this time.
0 commit comments