Skip to content

Commit

Permalink
Fix broken Pullquote cite color.
Browse files Browse the repository at this point in the history
This is a stopgap fix until this issue is fixed in WordPress: #25
  • Loading branch information
justintadlock committed Sep 28, 2024
1 parent e33161f commit 2fd005f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/css/blocks/core/pullquote.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => '20d92065a8854afaa9aa');
<?php return array('dependencies' => array(), 'version' => '953dda9ee2b11f6c93f1');
2 changes: 1 addition & 1 deletion public/css/blocks/core/pullquote.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions resources/scss/blocks/core/pullquote.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@
display: block;
}

///
/// Fixes the broken color for nested `<cite>` elements as of Gutenberg 18.1
/// (WordPress 6.6). This is already defined in `theme.json` by default, but we
/// must redefine it here until the issue is fixed. 😞
///
/// @link https://github.com/x3p0-dev/x3p0-ideas/issues/25
/// @link https://github.com/WordPress/gutenberg/issues/65329
///
.wp-block-pullquote blockquote > cite {
color: var(--wp--custom--color--text--muted, inherit);
}

// -----------------------------------------------------------------------------
// Block customizations.
// -----------------------------------------------------------------------------
Expand Down

0 comments on commit 2fd005f

Please sign in to comment.