From 726829e88231110e66311ca60b015e0b435e5edb Mon Sep 17 00:00:00 2001 From: Evangelos Skopelitis Date: Thu, 12 Mar 2026 07:56:25 -0400 Subject: [PATCH] upstreamable: frontend: GlobalSearch: Fix visibility on dark navbar Signed-off-by: Evangelos Skopelitis --- .../Layout.Default.stories.storyshot | 2 +- .../Layout.ErrorState.stories.storyshot | 2 +- .../Layout.MultiCluster.stories.storyshot | 2 +- .../Layout.WithClusterRoute.stories.storyshot | 2 +- ...ErrorPage.DifferentImage.stories.storyshot | 2 +- .../components/globalSearch/GlobalSearch.tsx | 26 +++++++++++++++---- ...lobalSearch.BasicExample.stories.storyshot | 2 +- 7 files changed, 27 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/App/__snapshots__/Layout.Default.stories.storyshot b/frontend/src/components/App/__snapshots__/Layout.Default.stories.storyshot index d72eeeb4b..210f530bb 100644 --- a/frontend/src/components/App/__snapshots__/Layout.Default.stories.storyshot +++ b/frontend/src/components/App/__snapshots__/Layout.Default.stories.storyshot @@ -35,7 +35,7 @@ class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-wb57ya-MuiFormControl-root-MuiTextField-root" >

setFocused(true)} + aria-label={isIconButton ? t('Search') : undefined} > - + {!isIconButton && {t('Search')}} ) : ( @@ -88,11 +97,17 @@ export function GlobalSearch({ isIconButton }: { isIconButton?: boolean }) { placeholder={t('Search')} InputProps={{ sx: theme => ({ - background: alpha(theme.palette.background.default, 0.7), + background: theme.palette.background.default, }), startAdornment: ( - + ), endAdornment: ( @@ -134,6 +149,7 @@ export function GlobalSearch({ isIconButton }: { isIconButton?: boolean }) { variant="outlined" placeholder={t('Search resources, pages, clusters by name')} InputProps={{ + sx: theme => ({ background: theme.palette.background.default }), autoFocus: true, value: placeholderValue, onChange: e => { @@ -185,7 +201,7 @@ export function GlobalSearch({ isIconButton }: { isIconButton?: boolean }) { width: '100%', left: 0, right: 0, - background: theme.palette.background.default, + background: theme.palette.navbar.background, zIndex: 1, } : {}), diff --git a/frontend/src/components/globalSearch/__snapshots__/GlobalSearch.BasicExample.stories.storyshot b/frontend/src/components/globalSearch/__snapshots__/GlobalSearch.BasicExample.stories.storyshot index 9afc29ce2..def83d635 100644 --- a/frontend/src/components/globalSearch/__snapshots__/GlobalSearch.BasicExample.stories.storyshot +++ b/frontend/src/components/globalSearch/__snapshots__/GlobalSearch.BasicExample.stories.storyshot @@ -10,7 +10,7 @@ class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-wb57ya-MuiFormControl-root-MuiTextField-root" >