diff --git a/packages/block-library/src/cover/edit/index.js b/packages/block-library/src/cover/edit/index.js index 2fb9fe2667aaaa..7de600f0b68098 100644 --- a/packages/block-library/src/cover/edit/index.js +++ b/packages/block-library/src/cover/edit/index.js @@ -489,6 +489,9 @@ function CoverEdit( { getPositionClassName( contentPosition ) ); + const showOverlay = + url || ! useFeaturedImage || ( useFeaturedImage && ! url ); + return ( <> { blockControls } @@ -500,7 +503,7 @@ function CoverEdit( { data-url={ url } > { resizeListener } - { ( ! useFeaturedImage || url ) && ( + { showOverlay && (