Skip to content

Commit

Permalink
Merge pull request #45499 from truph01/fix/44055
Browse files Browse the repository at this point in the history
Feat: Selected row in onboarding modal should not get :hover style
  • Loading branch information
marcaaron authored Jul 24, 2024
2 parents 8806b90 + dbe5e9f commit b434098
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 @@ -103,6 +103,7 @@ function BaseOnboardingPurpose({shouldUseNativeStyles, shouldEnableMaxHeight}: B
Welcome.setOnboardingPurposeSelected(choice);
Welcome.setOnboardingErrorMessage('');
},
focused: isSelected,
};
});
const isFocused = useIsFocused();
Expand Down

0 comments on commit b434098

Please sign in to comment.