{ !! isLink ? (
-
+
{ placeholder() }
) : (
@@ -430,11 +421,7 @@ export default function PostFeaturedImageEdit( {
{ /* If the featured image is linked, wrap in an tag to trigger any inherited link element styles */ }
{ !! isLink ? (
-
+
{ image }
) : (
diff --git a/packages/block-library/src/post-featured-image/editor.scss b/packages/block-library/src/post-featured-image/editor.scss
index 5fab62c571b1c..3295fe14e62ac 100644
--- a/packages/block-library/src/post-featured-image/editor.scss
+++ b/packages/block-library/src/post-featured-image/editor.scss
@@ -100,9 +100,9 @@
// When the Post Featured Image block is linked,
// it's wrapped with a disabled tag.
- // Restore cursor style so it doesn't appear 'clickable'.
+ // Ensure that the link is not clickable.
> a {
- cursor: default;
+ pointer-events: none;
}
// When the Post Featured Image block is linked,