mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: fix searchbar styling when focus is on results (#7517)
This commit is contained in:
parent
f42e74e7c5
commit
0a2f7e5a61
@ -72,11 +72,6 @@ const StyledSearch = styled('div')(({ theme }) => ({
|
||||
padding: '3px 5px 3px 12px',
|
||||
width: '100%',
|
||||
zIndex: 3,
|
||||
'&:focus-within': {
|
||||
borderBottomLeftRadius: 0,
|
||||
borderBottomRightRadius: 0,
|
||||
borderBottom: '0px',
|
||||
},
|
||||
}));
|
||||
|
||||
const StyledInputBase = styled(InputBase)(({ theme }) => ({
|
||||
@ -214,7 +209,22 @@ export const CommandBar = () => {
|
||||
return (
|
||||
<StyledContainer ref={searchContainerRef} active={showSuggestions}>
|
||||
<RecentlyVisitedRecorder />
|
||||
<StyledSearch>
|
||||
<StyledSearch
|
||||
sx={{
|
||||
borderBottomLeftRadius: (theme) =>
|
||||
showSuggestions
|
||||
? 0
|
||||
: theme.shape.borderRadiusExtraLarge,
|
||||
borderBottomRightRadius: (theme) =>
|
||||
showSuggestions
|
||||
? 0
|
||||
: theme.shape.borderRadiusExtraLarge,
|
||||
borderBottom: (theme) =>
|
||||
showSuggestions
|
||||
? '0px'
|
||||
: `1px solid ${theme.palette.neutral.border}`,
|
||||
}}
|
||||
>
|
||||
<SearchIcon
|
||||
sx={{
|
||||
mr: 1,
|
||||
|
Loading…
Reference in New Issue
Block a user