Twenty Twenty: Properly reflect text color changes in Quote and Pullquote block.

This changeset ensures that text color for citation are inherited when the user specifies color for the Pullquote or Quote block, or if one of those blocks is inside a block with a background.

Props nithins53, kajalgohel, kmadhak, sabernhardt, devtanbir, james-roberts, sapayth, rafinkhan, robinwpdeveloper, poena.
Fixes #55990.


git-svn-id: https://develop.svn.wordpress.org/trunk@55317 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2023-02-13 15:18:19 +00:00
parent 87ca0e14fa
commit ea57bf06ea
4 changed files with 48 additions and 0 deletions

View File

@ -683,6 +683,12 @@ hr.wp-block-separator.is-style-dots::before {
font-style: normal;
}
.editor-styles-wrapper .wp-block-quote.has-text-color cite,
.editor-styles-wrapper .wp-block-quote.has-background cite,
.editor-styles-wrapper .has-background .wp-block-quote cite {
color: inherit;
}
.editor-styles-wrapper .wp-block-quote p {
color: inherit;
font-weight: 400;
@ -883,6 +889,12 @@ hr.wp-block-separator.is-style-dots::before {
text-transform: none;
}
.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
.editor-styles-wrapper .wp-block-pullquote.has-background cite,
.editor-styles-wrapper .has-background .wp-block-pullquote cite {
color: inherit;
}
/* STYLE: SOLID COLOR */
.editor-styles-wrapper .wp-block-pullquote.is-style-solid-color {

View File

@ -687,6 +687,12 @@ hr.wp-block-separator.is-style-dots::before {
font-style: normal;
}
.editor-styles-wrapper .wp-block-quote.has-text-color cite,
.editor-styles-wrapper .wp-block-quote.has-background cite,
.editor-styles-wrapper .has-background .wp-block-quote cite {
color: inherit;
}
.editor-styles-wrapper .wp-block-quote p {
color: inherit;
font-weight: 400;
@ -887,6 +893,12 @@ hr.wp-block-separator.is-style-dots::before {
text-transform: none;
}
.editor-styles-wrapper .wp-block-pullquote.has-text-color cite,
.editor-styles-wrapper .wp-block-pullquote.has-background cite,
.editor-styles-wrapper .has-background .wp-block-pullquote cite {
color: inherit;
}
/* STYLE: SOLID COLOR */
.editor-styles-wrapper .wp-block-pullquote.is-style-solid-color {

View File

@ -3241,6 +3241,12 @@ figure.wp-block-gallery.alignfull {
margin-top: 1.2rem;
}
.wp-block-pullquote.has-text-color cite,
.wp-block-pullquote.has-background cite,
.has-background .wp-block-pullquote cite {
color: inherit;
}
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 2.8rem;
@ -3359,6 +3365,12 @@ figure.wp-block-table.is-style-stripes {
text-align: inherit;
}
.wp-block-quote.has-text-color cite,
.wp-block-quote.has-background cite,
.has-background .wp-block-quote cite {
color: inherit;
}
.wp-block-quote[style="text-align:center"] {
border-width: 0;
padding: 0;

View File

@ -3261,6 +3261,12 @@ figure.wp-block-gallery.alignfull {
margin-top: 1.2rem;
}
.wp-block-pullquote.has-text-color cite,
.wp-block-pullquote.has-background cite,
.has-background .wp-block-pullquote cite {
color: inherit;
}
.wp-block-pullquote.alignleft p,
.wp-block-pullquote.alignright p {
font-size: 2.8rem;
@ -3379,6 +3385,12 @@ figure.wp-block-table.is-style-stripes {
text-align: inherit;
}
.wp-block-quote.has-text-color cite,
.wp-block-quote.has-background cite,
.has-background .wp-block-quote cite {
color: inherit;
}
.wp-block-quote[style="text-align:center"] {
border-width: 0;
padding: 0;