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 (#61304)

Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
Co-authored-by: tellthemachines <isabel_brison@git.wordpress.org>
  • 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

1 comment on commit 809d622

@github-actions
Copy link

@github-actions github-actions bot commented on 809d622 May 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 809d622.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8919060534
📝 Reported issues:

Please sign in to comment.