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
  • Loading branch information
ramonjd committed May 2, 2024
1 parent 59ed45e commit d99dc28
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 d99dc28

Please sign in to comment.