Skip to content

Commit

Permalink
Fix Global styles text settings bleeding into placeholder component (#…
Browse files Browse the repository at this point in the history
…58303)

* reset typography styles on placeholder components

* added Changelog entry
  • Loading branch information
MaggieCabrera authored Jan 26, 2024
1 parent 3cb275b commit 2a9fd1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2a9fd1e

Please sign in to comment.