Skip to content

Commit 0412c7b

Browse files
committed
Twenty Twenty: Fixes pullquote block font size not changing.
The pullquote block was not reflecting the size changes. This also accounts for letter spacing in the editor. Props kmadhak, SergeyBiryukov, nidhidhandhukiya, harshvaishnav, sabernhardt, shailu25. Fixes #55975. git-svn-id: https://develop.svn.wordpress.org/trunk@58908 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4879071 commit 0412c7b

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,10 @@ hr.wp-block-separator.is-style-dots::before {
872872
transform: translateY(-50%);
873873
}
874874

875+
.editor-styles-wrapper .wp-block-pullquote[style*="letter-spacing"] p {
876+
letter-spacing: inherit;
877+
}
878+
875879
.editor-styles-wrapper .wp-block-pullquote__citation,
876880
.editor-styles-wrapper .wp-block-pullquote cite,
877881
.editor-styles-wrapper .wp-block-pullquote footer {

src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,10 @@ hr.wp-block-separator.is-style-dots::before {
876876
transform: translateY(-50%);
877877
}
878878

879+
.editor-styles-wrapper .wp-block-pullquote[style*="letter-spacing"] p {
880+
letter-spacing: inherit;
881+
}
882+
879883
.editor-styles-wrapper .wp-block-pullquote__citation,
880884
.editor-styles-wrapper .wp-block-pullquote cite,
881885
.editor-styles-wrapper .wp-block-pullquote footer {

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3295,6 +3295,19 @@ figure.wp-block-gallery.alignfull {
32953295
margin-left: 0;
32963296
}
32973297

3298+
.wp-block-pullquote[class*="-font-size"] p,
3299+
.wp-block-pullquote[style*="font-size"] p {
3300+
font-size: inherit;
3301+
}
3302+
3303+
.wp-block-pullquote[style*="font-weight"] p {
3304+
font-weight: inherit;
3305+
}
3306+
3307+
.wp-block-pullquote[style*="letter-spacing"] p {
3308+
letter-spacing: inherit;
3309+
}
3310+
32983311
/* STYLE: SOLID BACKGROUND COLOR */
32993312

33003313
.wp-block-pullquote.is-style-solid-color {

src/wp-content/themes/twentytwenty/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,6 +3315,19 @@ figure.wp-block-gallery.alignfull {
33153315
margin-right: 0;
33163316
}
33173317

3318+
.wp-block-pullquote[class*="-font-size"] p,
3319+
.wp-block-pullquote[style*="font-size"] p {
3320+
font-size: inherit;
3321+
}
3322+
3323+
.wp-block-pullquote[style*="font-weight"] p {
3324+
font-weight: inherit;
3325+
}
3326+
3327+
.wp-block-pullquote[style*="letter-spacing"] p {
3328+
letter-spacing: inherit;
3329+
}
3330+
33183331
/* STYLE: SOLID BACKGROUND COLOR */
33193332

33203333
.wp-block-pullquote.is-style-solid-color {

0 commit comments

Comments
 (0)