Skip to content

Commit

Permalink
Merge pull request #32721 from Expensify/georgia-splitButtonHoverThemes
Browse files Browse the repository at this point in the history
[Deploy Blocker Fix] Fix Split/Add to Group Button Highlight Color and Skeleton UI

(cherry picked from commit d4fb27a)
  • Loading branch information
Hayata Suenaga authored and OSBotify committed Dec 8, 2023
1 parent d7eef2d commit c2a409a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/EReceiptThumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function EReceiptThumbnail({transaction}) {
receiptMCCSize = variables.eReceiptMCCHeightWidthMedium;
}

const getBackgroundImage = useMemo((trans) => backgroundImages[StyleUtils.getEReceiptColorCode(trans)], [StyleUtils]);
const backgroundImage = useMemo(() => backgroundImages[StyleUtils.getEReceiptColorCode(transaction)], [StyleUtils, transaction]);

return (
<View
Expand All @@ -86,7 +86,7 @@ function EReceiptThumbnail({transaction}) {
onLayout={onContainerLayout}
>
<Image
source={getBackgroundImage(transaction)}
source={backgroundImage}
style={styles.eReceiptBackgroundThumbnail}
resizeMode="cover"
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function OptionRow(props) {
accessibilityLabel={props.option.text}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
hoverDimmingValue={1}
hoverStyle={props.hoverStyle || styles.sidebarLinkHover}
hoverStyle={!props.optionIsFocused ? props.hoverStyle || styles.sidebarLinkHover : undefined}
needsOffscreenAlphaCompositing={lodashGet(props.option, 'icons.length', 0) >= 2}
onMouseDown={props.shouldPreventDefaultFocusOnSelectRow ? (e) => e.preventDefault() : undefined}
>
Expand Down Expand Up @@ -264,6 +264,7 @@ function OptionRow(props) {
text={props.selectedStateButtonText}
onPress={() => props.onSelectedStatePressed(props.option)}
small
shouldUseDefaultHover={false}
/>
) : (
<PressableWithFeedback
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ const styles = (theme: ThemeColors) =>
},

sidebarLinkActive: {
backgroundColor: theme.border,
backgroundColor: theme.buttonHoveredBG,
textDecorationLine: 'none',
},

Expand Down
2 changes: 1 addition & 1 deletion src/styles/themes/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const darkTheme = {
tooltipSupportingText: colors.productLight800,
tooltipPrimaryText: colors.productLight900,
skeletonLHNIn: colors.productDark400,
skeletonLHNOut: colors.productDark400,
skeletonLHNOut: colors.productDark600,
QRLogo: colors.green400,
starDefaultBG: 'rgb(254, 228, 94)',
loungeAccessOverlay: colors.blue800,
Expand Down

0 comments on commit c2a409a

Please sign in to comment.