From b38c0322f7f85c2586816ddc23b3280ef5b949f0 Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Fri, 26 Jan 2024 11:29:23 +0100 Subject: [PATCH 1/2] reset typography styles on placeholder components --- packages/components/src/placeholder/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/components/src/placeholder/style.scss b/packages/components/src/placeholder/style.scss index fc9d57b6ec22f1..5bb0e0bb2ef11f 100644 --- a/packages/components/src/placeholder/style.scss +++ b/packages/components/src/placeholder/style.scss @@ -33,6 +33,11 @@ .components-placeholder__fieldset { font-family: $default-font; font-size: $default-font-size; + // Global Styles can affect this so we are resetting. + letter-spacing: initial; + line-height: initial; + text-transform: none; + font-weight: normal; } .components-placeholder__label { From e01934bbd06d688c295c5288ae5b4b6d557ef8aa Mon Sep 17 00:00:00 2001 From: MaggieCabrera Date: Fri, 26 Jan 2024 12:51:56 +0100 Subject: [PATCH 2/2] added Changelog entry --- packages/components/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 59cce32e06e841..6ce2f99fab99f8 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bug Fix +- `Placeholder`: Fix Global Styles typography settings bleeding into placeholder component ([#58303](https://github.com/WordPress/gutenberg/pull/58303)). - `PaletteEdit`: Fix palette item accessibility in details view ([#58214](https://github.com/WordPress/gutenberg/pull/58214)). ### Experimental