From 57e0dfabd7d476575a3c9b9d8ebee4f731d45900 Mon Sep 17 00:00:00 2001 From: KarunyaChavan Date: Mon, 8 Jun 2026 15:40:36 +0530 Subject: [PATCH] fix(theme): remove whitespace content from post-section-dash to prevent stray hyphen. - Replaces `content: "\020"` with `content: ""` in the `post-section-dash` mixin. - Prevents a visible hyphen from rendering in the editor when an empty heading block has the underline text decoration active. --- .../themes/twentynineteen/sass/mixins/_mixins-master.scss | 2 +- src/wp-content/themes/twentynineteen/style-editor.css | 4 ++-- src/wp-content/themes/twentynineteen/style-rtl.css | 8 ++++---- src/wp-content/themes/twentynineteen/style.css | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss b/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss index 2cb12b3d4f4cd..7919a56cf80b0 100644 --- a/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss +++ b/src/wp-content/themes/twentynineteen/sass/mixins/_mixins-master.scss @@ -68,7 +68,7 @@ &:before { background: $color__text-light; - content: "\020"; + content: ""; display: block; height: 2px; margin: $size__spacing-unit 0; diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index 3f4c8bd298a38..af20f9009560e 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -706,7 +706,7 @@ h2 { h1:before, h2:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -828,7 +828,7 @@ figcaption, .editor-post-title__block:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 719f0f52fc7ad..ea974c82cb04b 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -2526,7 +2526,7 @@ h6 { h1:not(.site-title):before, h2:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4219,7 +4219,7 @@ body.page .main-navigation { .entry .entry-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4513,7 +4513,7 @@ body.page .main-navigation { .author-bio .author-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4616,7 +4616,7 @@ body.page .main-navigation { .comments-area .comments-title-wrap .comments-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 22c57138ee73f..d3880b32203f0 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -2526,7 +2526,7 @@ h6 { h1:not(.site-title):before, h2:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4225,7 +4225,7 @@ body.page .main-navigation { .entry .entry-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4519,7 +4519,7 @@ body.page .main-navigation { .author-bio .author-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0; @@ -4622,7 +4622,7 @@ body.page .main-navigation { .comments-area .comments-title-wrap .comments-title:before { background: #767676; - content: "\020"; + content: ""; display: block; height: 2px; margin: 1rem 0;