From a160c464ee784446be61febc3428ba03e521d91c Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:12:56 +0200 Subject: [PATCH] Merge pull request #44219 from isogit123/blockquote_fix_regression [CP Staging] Remove hover background for non interactive elements (cherry picked from commit 418a7568587d62edb6ceb4e9aa41eddecb4754ca) --- src/components/MenuItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index fa58b5cd5f5f..8d5fe98bb99d 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -514,7 +514,7 @@ function MenuItem( ...(Array.isArray(wrapperStyle) ? wrapperStyle : [wrapperStyle]), !focused && (isHovered || pressed) && hoverAndPressStyle, shouldGreyOutWhenDisabled && disabled && styles.buttonOpacityDisabled, - isHovered && !pressed && styles.hoveredComponentBG, + isHovered && interactive && !pressed && styles.hoveredComponentBG, ] as StyleProp } disabledStyle={shouldUseDefaultCursorWhenDisabled && [styles.cursorDefault]}