From d9d34b93ae6c986d5f53a31feec27a7b68512c34 Mon Sep 17 00:00:00 2001
From: Christoph Jerolimov <jerolimov+git@redhat.com>
Date: Thu, 19 Sep 2024 12:23:26 +0200
Subject: [PATCH] Remove code that overrides the search bar background color

---
 src/themes/rhdh/components.ts      | 7 -------
 src/themes/rhdh/darkTheme.test.ts  | 1 -
 src/themes/rhdh/darkTheme.ts       | 1 -
 src/themes/rhdh/lightTheme.test.ts | 1 -
 src/themes/rhdh/lightTheme.ts      | 1 -
 src/types.ts                       | 1 -
 6 files changed, 12 deletions(-)

diff --git a/src/themes/rhdh/components.ts b/src/themes/rhdh/components.ts
index 09b234c..0a8926a 100644
--- a/src/themes/rhdh/components.ts
+++ b/src/themes/rhdh/components.ts
@@ -481,13 +481,6 @@ export const components = (themeConfig: ThemeConfig): Components => {
       styleOverrides: {
         root: {
           backgroundColor: general.mainSectionBackgroundColor,
-          "& div:first-child": {
-            '& > div[class*="-searchBar"]': {
-              backgroundColor: general.formControlBackgroundColor,
-              border: `1px solid ${general.searchBarBorderColor}`,
-              boxShadow: "none",
-            },
-          },
         },
       },
     };
diff --git a/src/themes/rhdh/darkTheme.test.ts b/src/themes/rhdh/darkTheme.test.ts
index 1beb2ac..3680cd8 100644
--- a/src/themes/rhdh/darkTheme.test.ts
+++ b/src/themes/rhdh/darkTheme.test.ts
@@ -79,7 +79,6 @@ describe("customDarkTheme", () => {
         general: {
           disabledBackground: "#444548",
           disabled: "#AAABAC",
-          searchBarBorderColor: "#57585a",
           formControlBackgroundColor: "#36373A",
           mainSectionBackgroundColor: "#0f1214",
           headerBottomBorderColor: "#A3A3A3",
diff --git a/src/themes/rhdh/darkTheme.ts b/src/themes/rhdh/darkTheme.ts
index 011eb77..3aebc89 100644
--- a/src/themes/rhdh/darkTheme.ts
+++ b/src/themes/rhdh/darkTheme.ts
@@ -28,7 +28,6 @@ export const customDarkTheme = (): ThemeConfigPalette => {
       general: {
         disabledBackground: "#444548",
         disabled: "#AAABAC",
-        searchBarBorderColor: "#57585a",
         formControlBackgroundColor: "#36373A",
         mainSectionBackgroundColor: "#0f1214",
         headerBottomBorderColor: "#A3A3A3",
diff --git a/src/themes/rhdh/lightTheme.test.ts b/src/themes/rhdh/lightTheme.test.ts
index 6362503..498c5d8 100644
--- a/src/themes/rhdh/lightTheme.test.ts
+++ b/src/themes/rhdh/lightTheme.test.ts
@@ -83,7 +83,6 @@ describe("customLightTheme", () => {
         general: {
           disabledBackground: "#D2D2D2",
           disabled: "#6A6E73",
-          searchBarBorderColor: "#E4E4E4",
           formControlBackgroundColor: "#FFF",
           mainSectionBackgroundColor: "#FFF",
           headerBottomBorderColor: "#C7C7C7",
diff --git a/src/themes/rhdh/lightTheme.ts b/src/themes/rhdh/lightTheme.ts
index 8dfbf8e..65e82b6 100644
--- a/src/themes/rhdh/lightTheme.ts
+++ b/src/themes/rhdh/lightTheme.ts
@@ -32,7 +32,6 @@ export const customLightTheme = (): ThemeConfigPalette => {
       general: {
         disabledBackground: "#D2D2D2",
         disabled: "#6A6E73",
-        searchBarBorderColor: "#E4E4E4",
         formControlBackgroundColor: "#FFF",
         mainSectionBackgroundColor: "#FFF",
         headerBottomBorderColor: "#C7C7C7",
diff --git a/src/types.ts b/src/types.ts
index 6e96d17..ea47c7a 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -6,7 +6,6 @@ export interface RHDHThemePalette {
   general: {
     disabledBackground: string;
     disabled: string;
-    searchBarBorderColor: string;
     formControlBackgroundColor: string;
     mainSectionBackgroundColor: string;
     headerBottomBorderColor: string;