Skip to content

Commit f450a00

Browse files
authored
Fix wp-block-pullquote size bug (#2179)
1 parent 81545ce commit f450a00

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.changeset/wise-points-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cloudfour/patterns': patch
3+
---
4+
5+
Prevent WordPress's default pullquote block styles from starting out too large

src/vendor/wordpress/styles/_core-blocks.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,15 @@ figure.wp-block-image {
415415
/// Pullquote Block Styles
416416

417417
.wp-block-pullquote {
418+
/// We have to reset the default text color and font size because Gutenberg
419+
/// makes it really difficult to adjust the defaults without a complete switch
420+
/// to using `theme.json`. These defaults are only exposed via inline styles
421+
/// rather than the core block CSS, which makes them extra difficult to
422+
/// troublehoot as well.
423+
color: var(--theme-color-text-muted);
424+
font-size: inherit;
425+
line-height: inherit;
426+
418427
/// We use generous margins to differentiate the pull quote from adjacent
419428
/// content. The core pattern uses padding for this, but we use margin so the
420429
/// margin of adjacent elements won't needlessly stack.

0 commit comments

Comments
 (0)