Skip to content

Commit

Permalink
fix: match autocomplete to other menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
sohrab- committed Feb 22, 2023
1 parent 566435a commit 1d578db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/AccountAutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const AccountAutoComplete: React.FC<{
</Badge>
<Text>{label}</Text>
<Spacer />
<Text fontSize="xs" color="gray.500" fontFamily="mono">
<Text fontSize="xs" opacity="0.6" fontFamily="mono">
{secondaryLabel}
</Text>
</Flex>
Expand Down
4 changes: 1 addition & 3 deletions src/components/common/AutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,14 @@ const Option = ({
ref
);

const focusedBacground = useColorModeValue("gray.100", "whiteAlpha.100");

return (
<ListItem
{...optionProps}
as="li"
ref={ref}
px="2"
py="2"
background={isFocused ? focusedBacground : "transparent"}
background={isFocused ? "purple.500" : "transparent"}
color="chakra-body-text"
fontWeight={isSelected ? "bold" : "normal"}
cursor="default"
Expand Down

0 comments on commit 1d578db

Please sign in to comment.