Commit 69592e37 authored by tom's avatar tom

change highlight color for search result

parent f8eeafb7
......@@ -11,7 +11,7 @@ const global = (props: StyleFunctionProps) => ({
'font-variant-ligatures': 'no-contextual',
},
mark: {
bgColor: 'yellow.200',
bgColor: mode('green.100', 'green.800')(props),
color: 'inherit',
},
'svg *::selection': {
......
......@@ -114,7 +114,7 @@ const SearchBar = ({ isHomepage }: Props) => {
/>
</PopoverTrigger>
<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 }/>
</PopoverBody>
</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