theme.json: Global link color always overloads any block styles on the frontend #31990
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
When declaring a link color under
style:elements
and a link color understyle:blocks
, the global color always overrides the block specific selection.Step-by-step reproduction instructions
theme.json
:Expected behaviour
Blocks should be able to override the global link color.
Actual behaviour
In the admin, the site title is red, and other links pink, as expected:
On the frontend however, the site title is always pink.
Screenshots or screen recording
CSS on the backend:
The grey background is from #30874.
CSS on the frontend:
WordPress information
Device information
The text was updated successfully, but these errors were encountered: