From e29f5be163d5ecf3a9b989cc801075464ef84617 Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 22 Mar 2024 15:53:14 +1100 Subject: [PATCH] Forgot to port over this condition, which wipes unnecessary repeat on cover --- .../src/components/global-styles/background-panel.js | 4 ++++ 1 file changed, 4 insertions(+) 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 7fb6707c25cfd0..afd6e337898f17 100644 --- a/packages/block-editor/src/components/global-styles/background-panel.js +++ b/packages/block-editor/src/components/global-styles/background-panel.js @@ -399,6 +399,10 @@ function BackgroundSizeToolsPanelItem( { nextRepeat = 'no-repeat'; } + if ( next === 'cover' ) { + nextRepeat = undefined; + } + if ( ( currentValueForToggle === 'cover' || currentValueForToggle === 'contain' ) &&