From 643dd25a4ce7beed52e6ba0e31ae7d944d557be9 Mon Sep 17 00:00:00 2001 From: Stian Date: Wed, 31 Jul 2024 10:53:05 +0200 Subject: [PATCH] Remove image caption fix for WP before 6.6 (#514) --- packages/themes/block-theme/src/blocks/core/image.css | 9 --------- packages/themes/block-theme/theme.json | 6 ++++++ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/themes/block-theme/src/blocks/core/image.css b/packages/themes/block-theme/src/blocks/core/image.css index 48a836e..9c75af6 100644 --- a/packages/themes/block-theme/src/blocks/core/image.css +++ b/packages/themes/block-theme/src/blocks/core/image.css @@ -9,12 +9,3 @@ .wp-block-post-featured-image img { display: block; } - -/* Reset styling for figcaption (Image block overrides caption styling from theme.json) */ -.wp-block-image figcaption { - color: unset; - font-size: var(--wp--preset--font-size--small); - line-height: unset; - margin: unset; - text-align: unset; -} diff --git a/packages/themes/block-theme/theme.json b/packages/themes/block-theme/theme.json index 76eeadd..aa8685c 100644 --- a/packages/themes/block-theme/theme.json +++ b/packages/themes/block-theme/theme.json @@ -171,6 +171,12 @@ "typography": { "fontSize": "var(--wp--preset--font-size--small)", "lineHeight": "unset" + }, + "spacing": { + "margin": { + "top": "0", + "bottom": "0" + } } } },