Skip to content

Commit fa3d847

Browse files
committed
Editor: Fix link color in the "Large title" query pattern.
The Post Title block in the `core/query-large-title-posts` pattern set its link color with the old `style.color.link` attribute, which the block no longer supports. The setting was ignored, so the title links took the theme's link colour. In themes such as Twenty Twenty-Two and Twenty Twenty-Four, that made the titles nearly invisible on the pattern's dark background. This changeset moves the link colour to `style.elements.link.color.text`, the Elements API attribute, so the titles show as intended. Props sakshamsharma5, onemaggie. Fixes #66201. git-svn-id: https://develop.svn.wordpress.org/trunk@64579 602fd350-edb4-49c9-b593-d223f7449a82
1 parent aa7198f commit fa3d847

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/block-patterns/query-large-title-posts.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- /wp:column -->
2323
2424
<!-- wp:column {"verticalAlignment":"center","width":"80%"} -->
25-
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:80%"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"72px","lineHeight":"1.1"},"color":{"text":"#ffffff","link":"#ffffff"}}} /--></div>
25+
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:80%"><!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"72px","lineHeight":"1.1"},"color":{"text":"#ffffff"},"elements":{"link":{"color":{"text":"#ffffff"}}}}} /--></div>
2626
<!-- /wp:column --></div>
2727
<!-- /wp:columns -->
2828
<!-- /wp:post-template --></div>

0 commit comments

Comments
 (0)