Commit 69592e37 authored by tom's avatar tom

change highlight color for search result

parent f8eeafb7
...@@ -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