@@ -7,6 +7,7 @@ import PressableWithFeedback from '@components/Pressable/PressableWithFeedback';
77import { useSurfaceBackgroundColor } from '@components/SurfaceBackgroundColorContext' ;
88
99import useStyleUtils from '@hooks/useStyleUtils' ;
10+ import useTheme from '@hooks/useTheme' ;
1011import useThemeStyles from '@hooks/useThemeStyles' ;
1112
1213import getButtonState from '@libs/getButtonState' ;
@@ -41,6 +42,7 @@ type MenuItemRootProps = PropsWithChildren &
4142function MenuItemRoot ( { children, onPress, isDisabled = false , sentryLabel, accessibilityLabel} : MenuItemRootProps ) {
4243 const styles = useThemeStyles ( ) ;
4344 const StyleUtils = useStyleUtils ( ) ;
45+ const theme = useTheme ( ) ;
4446 const surfaceBackgroundColor = useSurfaceBackgroundColor ( ) ;
4547 const pressableRef = useRef < View > ( null ) ;
4648 const isCompactPopover = useIsCompactPopover ( ) ;
@@ -81,10 +83,7 @@ function MenuItemRoot({children, onPress, isDisabled = false, sentryLabel, acces
8183 isCompactPopover && styles . compactPopoverMenuItemBase ,
8284 StyleUtils . getButtonBackgroundColorStyle ( getButtonState ( isHovered , pressed , false , isDisabled , isInteractive ) , true ) ,
8385 isDisabled && styles . buttonOpacityDisabled ,
84- isHovered &&
85- isInteractive &&
86- ! pressed &&
87- ( surfaceBackgroundColor ? StyleUtils . getRowHoverBackgroundColorStyle ( surfaceBackgroundColor ) : styles . hoveredComponentBG ) ,
86+ isHovered && isInteractive && ! pressed && StyleUtils . getRowHoverBackgroundColorStyle ( surfaceBackgroundColor ?? theme . appBG ) ,
8887 ] as StyleProp < ViewStyle >
8988 }
9089 disabled = { isDisabled }
0 commit comments