From 809d6228914e96675b7e34d2b0b393ad7299fb5a Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 2 May 2024 15:25:58 +1000 Subject: [PATCH] Only tell the toolspanel that it has a value when there are styles that are not inherited from theme.json (#61304) Co-authored-by: ramonjd Co-authored-by: tellthemachines --- .../src/components/global-styles/background-panel.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/global-styles/background-panel.js b/packages/block-editor/src/components/global-styles/background-panel.js index ef1f9673d601f9..145787bc59436b 100644 --- a/packages/block-editor/src/components/global-styles/background-panel.js +++ b/packages/block-editor/src/components/global-styles/background-panel.js @@ -275,9 +275,7 @@ function BackgroundImageToolsPanelItem( { }; }, [] ); - const hasValue = - hasBackgroundImageValue( style ) || - hasBackgroundImageValue( inheritedValue ); + const hasValue = hasBackgroundImageValue( style ); return (