Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Cai <yicai@redhat.com>
  • Loading branch information
ciiay committed Sep 27, 2024
1 parent 1496cf7 commit 5ce1b0c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
13 changes: 0 additions & 13 deletions src/themes/rhdh/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,6 @@ export const components = (themeConfig: ThemeConfig): Components => {
};
}

// MUI checkbox
if (options.checkbox !== "mui") {
components.MuiCheckbox = {
styleOverrides: {
root: {
"&[class*='Mui-checked'][class*='MuiCheckbox-colorSecondary-']": {
color: rhdhPrimary.main,
},
},
},
};
}

// MUI input fields
if (options.inputs !== "mui") {
components.MuiInputBase = {
Expand Down
6 changes: 3 additions & 3 deletions src/themes/rhdh/darkTheme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("customDarkTheme", () => {
main: "#1FA7F8",
},
secondary: {
main: "#B2A3FF",
main: "#1FA7F8",
},
status: {
aborted: "#9E9E9E",
Expand Down Expand Up @@ -100,8 +100,8 @@ describe("customDarkTheme", () => {
focusVisibleBorder: "#ADD6FF",
},
secondary: {
main: "#B2A3FF",
focusVisibleBorder: "#D0C7FF",
main: "#1FA7F8",
focusVisibleBorder: "#ADD6FF",
},
cards: {
headerTextColor: "#FFF",
Expand Down
6 changes: 3 additions & 3 deletions src/themes/rhdh/darkTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const customDarkTheme = (): ThemeConfigPalette => {
main: "#1FA7F8",
},
secondary: {
main: "#B2A3FF",
main: "#1FA7F8",
},
navigation: {
background: "#0f1214",
Expand Down Expand Up @@ -49,8 +49,8 @@ export const customDarkTheme = (): ThemeConfigPalette => {
focusVisibleBorder: "#ADD6FF",
},
secondary: {
main: "#B2A3FF",
focusVisibleBorder: "#D0C7FF",
main: "#1FA7F8",
focusVisibleBorder: "#ADD6FF",
},
cards: {
headerTextColor: "#FFF",
Expand Down
6 changes: 3 additions & 3 deletions src/themes/rhdh/lightTheme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("customLightTheme", () => {
main: "#0066CC",
},
secondary: {
main: "#8476D1",
main: "#0066CC",
},
status: {
aborted: "#757575",
Expand Down Expand Up @@ -104,8 +104,8 @@ describe("customLightTheme", () => {
focusVisibleBorder: "#0066CC",
},
secondary: {
main: "#8476D1",
focusVisibleBorder: "#8476D1",
main: "#0066CC",
focusVisibleBorder: "#0066CC",
},
cards: {
headerTextColor: "#151515",
Expand Down
6 changes: 3 additions & 3 deletions src/themes/rhdh/lightTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const customLightTheme = (): ThemeConfigPalette => {
main: "#0066CC",
},
secondary: {
main: "#8476D1",
main: "#0066CC",
},
navigation: {
background: "#222427",
Expand Down Expand Up @@ -53,8 +53,8 @@ export const customLightTheme = (): ThemeConfigPalette => {
focusVisibleBorder: "#0066CC",
},
secondary: {
main: "#8476D1",
focusVisibleBorder: "#8476D1",
main: "#0066CC",
focusVisibleBorder: "#0066CC",
},
cards: {
headerTextColor: "#151515",
Expand Down

0 comments on commit 5ce1b0c

Please sign in to comment.