Skip to content

Commit 374d565

Browse files
authored
fix(theme): techdocs addon subheader bg-color (#1703)
Signed-off-by: Yi Cai <[email protected]>
1 parent f5f4973 commit 374d565

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-theme': patch
3+
---
4+
5+
Scope TechDocs subheader toolbar to use `background.paper`, fixing the gray strip under the page header. Adds a `MuiCssBaseline` rule targeting `[class*="BackstageHeader-header-"] + [class*="MuiToolbar-root"]` so other toolbars remain unaffected.

workspaces/theme/plugins/theme/src/utils/createComponents.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export const createComponents = (themeConfig: ThemeConfig): Components => {
8888
'pre, code': {
8989
fontFamily: redHatFonts.monospace,
9090
},
91+
"[class*='BackstagePage-root-'] > [class*='MuiToolbar-root']": {
92+
backgroundColor: theme.palette.background.paper,
93+
},
9194
};
9295
},
9396
};

0 commit comments

Comments
 (0)