From fe09cdd003646b18e53fa3bc9d28512ec78f968e Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Wed, 5 Jul 2023 19:36:11 +0200 Subject: [PATCH] Update styling --- src/app/components/Search/index.tsx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/app/components/Search/index.tsx b/src/app/components/Search/index.tsx index 7d78b5b1fa..ecd11e9621 100644 --- a/src/app/components/Search/index.tsx +++ b/src/app/components/Search/index.tsx @@ -10,12 +10,14 @@ import { COLORS } from '../../../styles/theme/colors' import { RouteUtils } from '../../utils/route-utils' import { useScreenSize } from '../../hooks/useScreensize' import HighlightOffIcon from '@mui/icons-material/HighlightOff' +import ErrorIcon from '@mui/icons-material/Error' import IconButton from '@mui/material/IconButton' import { SearchSuggestionsButtons } from './SearchSuggestionsButtons' import { formHelperTextClasses } from '@mui/material/FormHelperText' import { outlinedInputClasses } from '@mui/material/OutlinedInput' import { SearchScope } from '../../../types/searchScope' import { textSearchMininumLength } from './search-utils' +import Typography from '@mui/material/Typography' export type SearchVariant = 'button' | 'icon' | 'expandable' @@ -141,6 +143,8 @@ const SearchCmp: FC = ({ scope, variant, disabled, onFocusChange: o const searchButtonContent = variant !== 'button' ? : t('search.searchBtnText') + const hasWarning = isTooShort + return ( = ({ scope, variant, disabled, onFocusChange: o aria-label={searchPlaceholderTranslated} > onChange(e.target.value)} onFocus={() => onFocusChange(true)} @@ -187,7 +192,22 @@ const SearchCmp: FC = ({ scope, variant, disabled, onFocusChange: o value && value !== valueInSearchParams && (isTooShort ? ( - t('search.error.tooShort') + + + +   + {t('search.error.tooShort')} + + ) : (