From 5944170202266040843a4c129dba8c07f82eff84 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:10:28 +1300 Subject: [PATCH] Stop headings breaking in odd places `.wp-site-blocks` has `word-wrap: break-word` which can cause headings to break mid word with `text-wrap: balance` set. See https://github.com/WordPress/wporg-parent-2021/issues/118 --- .../themes/wporg-parent-2021/sass/base/_elements.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss b/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss index 15253add..a1e1775e 100644 --- a/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss +++ b/source/wp-content/themes/wporg-parent-2021/sass/base/_elements.scss @@ -8,7 +8,8 @@ h6, caption, figcaption { text-wrap: var(--wp--custom--heading--typography--text-wrap); - overflow-wrap: normal; + overflow-wrap: initial; + word-break: initial; } // Prevent orphans