Skip to content

Commit

Permalink
Fix Placeholder component padding when body text font size is changed (
Browse files Browse the repository at this point in the history
…#58323)

* added font size to component wrapper so it's used by the padding value

* update changelog
  • Loading branch information
MaggieCabrera authored Jan 29, 2024
1 parent fcf0b5d commit 9363cf0
Show file tree
Hide file tree
Showing 2 changed files with 2 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 Placeholder component padding when body text font size is changed ([#58323](https://github.com/WordPress/gutenberg/pull/58323)).
- `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)).

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/placeholder/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// This needs specificity to override individual block styles.
.components-placeholder.components-placeholder {
font-size: $default-font-size;
box-sizing: border-box;
position: relative;
padding: 1em;
Expand Down

0 comments on commit 9363cf0

Please sign in to comment.