Skip to content

Commit 693cd3c

Browse files
Twenty Nineteen: Ensure that Pullquote block color is reflected on citation text.
Follow-up to [43808]. Props nidhidhandhukiya, sainathpoojary, kelvinballoo, ankit-k-gupta, pooja1210, karmatosed, sabernhardt, sandeepdahiya, SergeyBiryukov. Fixes #58100. git-svn-id: https://develop.svn.wordpress.org/trunk@61295 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e5b3251 commit 693cd3c

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@
436436
}
437437
}
438438

439+
&.has-text-color cite {
440+
color: inherit;
441+
}
442+
439443
&.is-style-solid-color {
440444
background-color: $color__link;
441445
padding-left: 0;

src/wp-content/themes/twentynineteen/style-editor.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,12 @@ figcaption,
11031103
color: #767676;
11041104
}
11051105

1106+
.wp-block-pullquote.has-text-color .wp-block-pullquote__citation,
1107+
.wp-block-pullquote.has-primary-background-color blockquote p,
1108+
.wp-block-pullquote.has-dark-gray-background-color blockquote p {
1109+
color: inherit;
1110+
}
1111+
11061112
.wp-block-pullquote.is-style-solid-color blockquote {
11071113
width: calc(100% - (2 * 1rem));
11081114
max-width: calc( 100% - (2 * 1rem));

src/wp-content/themes/twentynineteen/style-editor.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,12 @@ figcaption,
515515
color: $color__text-light;
516516
}
517517

518+
&.has-text-color .wp-block-pullquote__citation,
519+
&.has-primary-background-color blockquote p,
520+
&.has-dark-gray-background-color blockquote p {
521+
color: inherit;
522+
}
523+
518524
&.is-style-solid-color {
519525

520526
blockquote {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5758,6 +5758,10 @@ body.page .main-navigation {
57585758
margin-top: 0;
57595759
}
57605760

5761+
.entry .entry-content .wp-block-pullquote.has-text-color cite {
5762+
color: inherit;
5763+
}
5764+
57615765
.entry .entry-content .wp-block-pullquote.is-style-solid-color {
57625766
background-color: #0073aa;
57635767
padding-right: 0;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5770,6 +5770,10 @@ body.page .main-navigation {
57705770
margin-top: 0;
57715771
}
57725772

5773+
.entry .entry-content .wp-block-pullquote.has-text-color cite {
5774+
color: inherit;
5775+
}
5776+
57735777
.entry .entry-content .wp-block-pullquote.is-style-solid-color {
57745778
background-color: #0073aa;
57755779
padding-left: 0;

0 commit comments

Comments
 (0)