x3p0-dev / x3p0-ideas

A new WordPress theme.
GNU General Public License v3.0
52 stars 4 forks source link

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

Open justintadlock opened 4 months ago

justintadlock commented 4 months ago

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: