Skip to content

Commit

Permalink
Feat: Selected row in onboarding modal should not get :hover style
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Jul 16, 2024
1 parent 1465a92 commit dbe5e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function MenuItem(
...(Array.isArray(wrapperStyle) ? wrapperStyle : [wrapperStyle]),
!focused && (isHovered || pressed) && hoverAndPressStyle,
shouldGreyOutWhenDisabled && disabled && styles.buttonOpacityDisabled,
isHovered && interactive && !pressed && styles.hoveredComponentBG,
isHovered && interactive && !focused && !pressed && styles.hoveredComponentBG,
] as StyleProp<ViewStyle>
}
disabledStyle={shouldUseDefaultCursorWhenDisabled && [styles.cursorDefault]}
Expand Down
1 change: 1 addition & 0 deletions src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function BaseOnboardingPurpose({shouldUseNativeStyles, shouldEnableMaxHeight, on
Welcome.setOnboardingPurposeSelected(choice);
setErrorMessage('');
},
focused: isSelected,
};
});
const isFocused = useIsFocused();
Expand Down

0 comments on commit dbe5e9f

Please sign in to comment.