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 @@ -634,6 +634,15 @@ export const createComponents = (themeConfig: ThemeConfig): Components => {
634634 '& hr' : {
635635 backgroundColor : general . sidebarDividerColor ,
636636 } ,
637+ '#rhdh-sidebar-layout & a[aria-current="page"], & a[aria-current="page"]' :
638+ {
639+ background : `${ sidebarItemInteractionBackgroundColor } !important` ,
640+ backgroundColor : `${ sidebarItemInteractionBackgroundColor } !important` ,
641+ color : `${ navigationSelectedColor } !important` ,
642+ '& .MuiTypography-root' : {
643+ color : 'inherit !important' ,
644+ } ,
645+ } ,
637646 '& [class*="BackstageSidebarItem-selected-"][class*="BackstageSidebarItem-root-"]' :
638647 {
639648 backgroundColor : `${ sidebarItemInteractionBackgroundColor } !important` ,
You can’t perform that action at this time.
0 commit comments