Skip to content

Commit

Permalink
Only tell the toolspanel that it has a value when there are styles th…
Browse files Browse the repository at this point in the history
…at are not inherited from theme.json (WordPress#61304)

Co-authored-by: ramonjd <[email protected]>
Co-authored-by: tellthemachines <[email protected]>
  • Loading branch information
3 people authored May 2, 2024
1 parent 1351c67 commit 809d622
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ function BackgroundImageToolsPanelItem( {
};
}, [] );

const hasValue =
hasBackgroundImageValue( style ) ||
hasBackgroundImageValue( inheritedValue );
const hasValue = hasBackgroundImageValue( style );

return (
<ToolsPanelItem
Expand Down

0 comments on commit 809d622

Please sign in to comment.