Skip to content

Post Title: link color not applied in the view #52195

@jffng

Description

@jffng

Description

Attempting to change the post title's link color does not work.

Step-by-step reproduction instructions

Add some markup like this to a template:

<!-- wp:query {"queryId":1,"query":{"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","sticky":"","perPage":10}} -->
<div class="wp-block-query"><!-- wp:post-template {"layout":{"type":"default"}} -->
<!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|vivid-red"}}}}} /-->

<!-- wp:post-excerpt /-->
<!-- /wp:post-template --></div>
<!-- /wp:query -->

Verify the link color is correct in the editor, but not the front end.

Screenshots, screen recording, code snippet

Using emptytheme:

Editor View
Screenshot 2023-06-30 at 4 22 42 PM Screenshot 2023-06-30 at 4 22 45 PM

Environment info

  • Gutenberg trunk
  • Chrome latest, Safari, Firefox

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

Labels

[Feature] BlocksOverall functionality of blocks[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions