Skip to content

Post Terms Block: Link Color being overridden by core link styles #59506

@bacoords

Description

@bacoords

Description

Apply a link color to the Post terms block- it'll work in the editor but not on the frontend. The core link style is applied directly to the <a> element and overrides it:

a:where(:not(.wp-element-button)) { ... }

Step-by-step reproduction instructions

  1. Download the latest Gutenberg (17.8.0)
  2. Add a Post Terms block to your Query Loop (for example, the categories block variation)
  3. Apply a text Link color to the post terms block that is different than the site's existing link color
  4. View on the frontend

Screenshots, screen recording, code snippet

Screen.Recording.2024-03-01.at.6.37.37.AM.mov

Environment info

  • WordPress 6.4 AND Gutenberg 17.8.0
  • Replicated in TT4 theme and other themes (noticed originally in Wabi)

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

No one assigned

    Labels

    [Block] Post TermsAffects the Post Terms Block[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[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