Skip to content

Commit

Permalink
Merge pull request #35354 from bernhardoj/fix/34416-option-row-border
Browse files Browse the repository at this point in the history
Fix the second avatar border color doesn't match the background when hovered in search page
  • Loading branch information
iwiznia authored Feb 2, 2024
2 parents 8fa0994 + 0a223df commit ba9cf0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/OptionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@ function OptionRow({
<SubscriptAvatar
mainAvatar={option.icons[0]}
secondaryAvatar={option.icons[1]}
backgroundColor={hovered ? hoveredBackgroundColor : subscriptColor}
backgroundColor={hovered && !optionIsFocused ? hoveredBackgroundColor : subscriptColor}
size={CONST.AVATAR_SIZE.DEFAULT}
/>
) : (
<MultipleAvatars
icons={option.icons}
size={CONST.AVATAR_SIZE.DEFAULT}
secondAvatarStyle={[StyleUtils.getBackgroundAndBorderStyle(hovered ? hoveredBackgroundColor : subscriptColor)]}
secondAvatarStyle={[StyleUtils.getBackgroundAndBorderStyle(hovered && !optionIsFocused ? hoveredBackgroundColor : subscriptColor)]}
shouldShowTooltip={showTitleTooltip && OptionsListUtils.shouldOptionShowTooltip(option)}
/>
))}
Expand Down

0 comments on commit ba9cf0f

Please sign in to comment.