-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation Link Block Color is overriden by block CSS #57499
Comments
The navigation block links are specific blocks. What I means is that the actual link is not in the block called "core-navigation" but on the inner blocks like the core/navigation-link, core/page-list and so on. |
I am removing the needs testing label because I can confirm that this style in theme.json does not work. It might not be a true "bug", it might be intended?, but it does not work like developers expect it to, and it would be much easier if the style could just be added to core/navigation. |
#47431 seems to be related. I commented a summary there. Should these issue be merged? |
Thanks @gaambo, a bit late, but I'll close this issue as a duplicate of the original you mentioned. |
Description
Even though color for Hover and text is provided in theme.json
"core/navigation": { "spacing": { "blockGap": "0.5rem" }, "elements": { "link": { "typography": { "textDecoration": "none" }, "color": { "text": "var(--wp--preset--color--on-surface)" }, ":hover": { "color": { "text": "var(--wp--preset--color--on-surface-variant)" }, "typography": { "textDecoration": "underline" } } } }
The Hover State color is overriden by Css Rule from wp-includes/blocks/navigation/style.min.css
Normal State
On Hover State
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
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
The text was updated successfully, but these errors were encountered: