Skip to content

Commit

Permalink
updated code for autocomplete highlight on menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenn Cox authored and Jenn Cox committed Apr 5, 2024
1 parent 2d8aeff commit 982fb96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {

import { SvgSplit } from '../../icons/v0';
import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties, theme, styles, colors } from '../../style';
import { type CSSProperties, theme, styles } from '../../style';
import { Text } from '../common/Text';
import { TextOneLine } from '../common/TextOneLine';
import { View } from '../common/View';
Expand Down Expand Up @@ -301,6 +301,7 @@ type CategoryItemProps = {
embedded?: boolean;
};

// eslint-disable-next-line import/no-unused-modules
export function CategoryItem({
item,
className,
Expand All @@ -313,7 +314,7 @@ export function CategoryItem({
const narrowStyle = isNarrowWidth
? {
...styles.mobileMenuItem,
color: theme.menuItemText,
color: theme.menuAutoCompleteText,
borderRadius: 0,
borderTop: `1px solid ${theme.pillBorder}`,
}
Expand All @@ -331,6 +332,9 @@ export function CategoryItem({
? theme.menuItemBackgroundHover
: theme.menuAutoCompleteBackgroundHover
: 'transparent',
color: highlighted
? theme.menuAutoCompleteItemTextHover
: theme.menuItemText,
':hover': {
color: theme.menuAutoCompleteItemTextHover,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { useAccounts } from '../../hooks/useAccounts';
import { usePayees } from '../../hooks/usePayees';
import { SvgAdd } from '../../icons/v1';
import { useResponsive } from '../../ResponsiveProvider';
import { type CSSProperties, theme, styles, colors } from '../../style';
import { type CSSProperties, theme, styles } from '../../style';
import { Button } from '../common/Button';
import { TextOneLine } from '../common/TextOneLine';
import { View } from '../common/View';
Expand Down Expand Up @@ -518,6 +518,9 @@ function PayeeItem({
backgroundColor: highlighted
? theme.menuAutoCompleteBackgroundHover
: 'transparent',
color: highlighted
? theme.menuAutoCompleteItemTextHover
: theme.menuItemText,
':hover': {
color: theme.menuAutoCompleteItemTextHover,
},
Expand Down

0 comments on commit 982fb96

Please sign in to comment.