From ea3c997cb55913b2693a3e88e1184f8962571139 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Fri, 7 May 2021 13:58:50 +0300 Subject: [PATCH] [Block Library - Post Featured Image]: Change wrapper element to `figure` --- packages/block-library/src/post-featured-image/edit.js | 2 +- packages/block-library/src/post-featured-image/index.php | 2 +- packages/block-library/src/post-featured-image/style.scss | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-featured-image/edit.js b/packages/block-library/src/post-featured-image/edit.js index 9c3cca282d9c9..8dc69972af834 100644 --- a/packages/block-library/src/post-featured-image/edit.js +++ b/packages/block-library/src/post-featured-image/edit.js @@ -112,7 +112,7 @@ function PostFeaturedImageDisplay( { /> ) } -
{ image }
+
{ image }
); } diff --git a/packages/block-library/src/post-featured-image/index.php b/packages/block-library/src/post-featured-image/index.php index e4b613b4cd6fa..8497a0569a8ba 100644 --- a/packages/block-library/src/post-featured-image/index.php +++ b/packages/block-library/src/post-featured-image/index.php @@ -30,7 +30,7 @@ function render_block_core_post_featured_image( $attributes, $content, $block ) $wrapper_attributes = get_block_wrapper_attributes(); - return '

' . $featured_image . '

'; + return '
' . $featured_image . '
'; } /** diff --git a/packages/block-library/src/post-featured-image/style.scss b/packages/block-library/src/post-featured-image/style.scss index 1deddff9a9fec..a7164e9fe0183 100644 --- a/packages/block-library/src/post-featured-image/style.scss +++ b/packages/block-library/src/post-featured-image/style.scss @@ -1,4 +1,6 @@ .wp-block-post-featured-image { + margin-left: 0; + margin-right: 0; a { display: inline-block; }