Skip to content

[Navigation] Gutenberg 18.1 reduced specificity breaks link text-decoration #11

@justintadlock

Description

@justintadlock

Nested link styles in theme.json, specifically for text-decoration, is broken when using Gutenberg 18.1. This PR reduces the specificity of the global styles selector, wrapping everything in :where():

With that change in place, the Core CSS wins the specificity battle, overruling theme.json: https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/navigation/style.scss#L79-L88

Block library style updates were in included in this PR, but the Navigation block was not included:

Metadata

Metadata

Assignees

Labels

WordPress IssueWhatcha doin' to me WordPress/Gutenberg?🐛 BugI installed this, and now my website is broken.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions