Skip to content

Commit 275d8b1

Browse files
authored
fix(theme): support global-header above-sidebar position (#834)
1 parent 017dc19 commit 275d8b1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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+
Support above-sidebar postiion for global header

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ export const createComponents = (themeConfig: ThemeConfig): Components => {
693693
backgroundColor: general.sidebarBackgroundColor,
694694
// Cancel out the spacing produced by the page inset border when
695695
// the global header is present
696-
"& #global-header ~ main, & #global-header ~ [class*='MuiLinearProgress-root']":
696+
"& #global-header ~ main, & #global-header ~ [class*='MuiLinearProgress-root'], & #above-main-content-header-container ~ main, & #above-main-content-header-container ~ [class*='MuiLinearProgress-root']":
697697
{
698698
marginTop: 'calc(-1 * var(--rhdh-v1-page-inset))',
699699
},

0 commit comments

Comments
 (0)