Commit 3a62eab0 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #834 from blockscout/search/change-highlight-color

change highlight color for search result
parents c4cdc963 69592e37
...@@ -11,7 +11,7 @@ const global = (props: StyleFunctionProps) => ({ ...@@ -11,7 +11,7 @@ const global = (props: StyleFunctionProps) => ({
'font-variant-ligatures': 'no-contextual', 'font-variant-ligatures': 'no-contextual',
}, },
mark: { mark: {
bgColor: 'yellow.200', bgColor: mode('green.100', 'green.800')(props),
color: 'inherit', color: 'inherit',
}, },
'svg *::selection': { 'svg *::selection': {
......
...@@ -114,7 +114,7 @@ const SearchBar = ({ isHomepage }: Props) => { ...@@ -114,7 +114,7 @@ const SearchBar = ({ isHomepage }: Props) => {
/> />
</PopoverTrigger> </PopoverTrigger>
<PopoverContent w={ `${ menuWidth.current }px` } maxH={{ base: '300px', lg: '500px' }} overflowY="scroll" ref={ menuRef }> <PopoverContent w={ `${ menuWidth.current }px` } maxH={{ base: '300px', lg: '500px' }} overflowY="scroll" ref={ menuRef }>
<PopoverBody py={ 6 }> <PopoverBody py={ 6 } sx={ isHomepage ? { mark: { bgColor: 'green.100' } } : {} }>
<SearchBarSuggest query={ query } redirectCheckQuery={ redirectCheckQuery } searchTerm={ searchTerm } onItemClick={ handleItemClick }/> <SearchBarSuggest query={ query } redirectCheckQuery={ redirectCheckQuery } searchTerm={ searchTerm } onItemClick={ handleItemClick }/>
</PopoverBody> </PopoverBody>
</PopoverContent> </PopoverContent>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment