From 0e770f992e95cf92e55488c13570d10ddf271cee Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Fri, 21 Mar 2025 17:31:43 +0530 Subject: [PATCH 1/2] Bundled Theme: Fix inconsistent table caption spacing between editor and frontend --- src/wp-content/themes/twentynineteen/style-editor.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index 5206b537e21cd..c4ee3135b6a11 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -1272,6 +1272,10 @@ figcaption, } /** === Table === */ +.wp-block-table table { + margin-bottom: 1.375rem; +} + .wp-block-table td, .wp-block-table th { border-color: #767676; } From c9f81f843d9920cb9560237dcaf0b4835b7fb5b9 Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Thu, 27 Mar 2025 22:25:57 +0530 Subject: [PATCH 2/2] Bundled Theme: Refine table margin selector for more precise editor spacing --- src/wp-content/themes/twentynineteen/style-editor.css | 8 ++++---- src/wp-content/themes/twentynineteen/style-editor.scss | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index c4ee3135b6a11..5e48003bde804 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -896,6 +896,10 @@ figcaption, font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; } +:where(.editor-styles-wrapper table:not(:last-child)) { + margin-bottom: 1.375rem; +} + /** === Cover === */ .wp-block-cover h2, .wp-block-cover .wp-block-cover-text { @@ -1272,10 +1276,6 @@ figcaption, } /** === Table === */ -.wp-block-table table { - margin-bottom: 1.375rem; -} - .wp-block-table td, .wp-block-table th { border-color: #767676; } diff --git a/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss index c4c79817ae9cd..d90ebc3f9cfc4 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.scss +++ b/src/wp-content/themes/twentynineteen/style-editor.scss @@ -280,6 +280,10 @@ figcaption, @include font-family( $font__heading ); } +:where(.editor-styles-wrapper table:not(:last-child)) { + margin-bottom: 1.375rem; +} + /** === Cover === */ .wp-block-cover {