Skip to content

Commit

Permalink
fix: added style for global header
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Cai <yicai@redhat.com>
  • Loading branch information
ciiay committed Feb 5, 2025
1 parent 10cdcbe commit 10ab3b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/themes/rhdh/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ export const components = (themeConfig: ThemeConfig): Components => {
};
}

// MUI AppBar
if (options.headers !== "mui") {
components.MuiAppBar = {
styleOverrides: {
root: {
backgroundColor: general.sidebarBackgroundColor,
backgroundImage: "none",
},
},
}
}

// MUI buttons
// Don't disableRipple for MuiButtonBase as it will affect all the buttons
// and we need to ensure that the buttons have a right touch and focus styling.
Expand Down Expand Up @@ -466,7 +478,7 @@ export const components = (themeConfig: ThemeConfig): Components => {
styleOverrides: {
drawer: {
backgroundColor:
general.sidebarBackgroundColor ?? general.sideBarBackgroundColor,
general.sidebarBackgroundColor ?? general.sidebarBackgroundColor,
'& a[class*="BackstageSidebarItem-selected-"]': {
backgroundColor: general.sidebarItemSelectedBackgroundColor,
},
Expand Down

0 comments on commit 10ab3b5

Please sign in to comment.