From e8db3d92a0c39a0fb0ad4aee661d4457e4f9032e Mon Sep 17 00:00:00 2001 From: Sainath Poojary Date: Tue, 17 Jun 2025 14:06:51 +0530 Subject: [PATCH] Bundled Theme: Ensure text color inheritance for pullquote citations --- .../themes/twentynineteen/sass/blocks/_blocks.scss | 4 ++++ src/wp-content/themes/twentynineteen/style-editor.css | 6 ++++++ src/wp-content/themes/twentynineteen/style-editor.scss | 6 ++++++ src/wp-content/themes/twentynineteen/style-rtl.css | 4 ++++ src/wp-content/themes/twentynineteen/style.css | 4 ++++ 5 files changed, 24 insertions(+) diff --git a/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss b/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss index af1ec47150159..3c741fb2d0a3d 100644 --- a/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss +++ b/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss @@ -436,6 +436,10 @@ } } + &.has-text-color cite { + color: inherit; + } + &.is-style-solid-color { background-color: $color__link; padding-left: 0; diff --git a/src/wp-content/themes/twentynineteen/style-editor.css b/src/wp-content/themes/twentynineteen/style-editor.css index 5206b537e21cd..f3b54b1cdc9f1 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.css +++ b/src/wp-content/themes/twentynineteen/style-editor.css @@ -1103,6 +1103,12 @@ figcaption, color: #767676; } +.wp-block-pullquote.has-text-color .wp-block-pullquote__citation, +.wp-block-pullquote.has-primary-background-color blockquote p, +.wp-block-pullquote.has-dark-gray-background-color blockquote p { + color: inherit; +} + .wp-block-pullquote.is-style-solid-color blockquote { width: calc(100% - (2 * 1rem)); max-width: calc( 100% - (2 * 1rem)); diff --git a/src/wp-content/themes/twentynineteen/style-editor.scss b/src/wp-content/themes/twentynineteen/style-editor.scss index c4c79817ae9cd..75b594a006b02 100644 --- a/src/wp-content/themes/twentynineteen/style-editor.scss +++ b/src/wp-content/themes/twentynineteen/style-editor.scss @@ -515,6 +515,12 @@ figcaption, color: $color__text-light; } + &.has-text-color .wp-block-pullquote__citation, + &.has-primary-background-color blockquote p, + &.has-dark-gray-background-color blockquote p { + color: inherit; + } + &.is-style-solid-color { blockquote { diff --git a/src/wp-content/themes/twentynineteen/style-rtl.css b/src/wp-content/themes/twentynineteen/style-rtl.css index 9f1700c012b9b..bfe2ba2c8a590 100644 --- a/src/wp-content/themes/twentynineteen/style-rtl.css +++ b/src/wp-content/themes/twentynineteen/style-rtl.css @@ -5758,6 +5758,10 @@ body.page .main-navigation { margin-top: 0; } +.entry .entry-content .wp-block-pullquote.has-text-color cite { + color: inherit; +} + .entry .entry-content .wp-block-pullquote.is-style-solid-color { background-color: #0073aa; padding-right: 0; diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css index 634a947b3a880..764f9df46d248 100644 --- a/src/wp-content/themes/twentynineteen/style.css +++ b/src/wp-content/themes/twentynineteen/style.css @@ -5770,6 +5770,10 @@ body.page .main-navigation { margin-top: 0; } +.entry .entry-content .wp-block-pullquote.has-text-color cite { + color: inherit; +} + .entry .entry-content .wp-block-pullquote.is-style-solid-color { background-color: #0073aa; padding-left: 0;