Group block overrides Navigation Link hover color in the editor #63003
Labels
[Block] Navigation
Affects the Navigation Block
[Type] Bug
An existing feature does not function as intended
Description
In the editor, group block link hover colors can override the navigation block's hover color. This is an inconsistency given the way the frontend works and regular link colors work.
This culprit seems to be this style, which has high specificity due to the
:hover
pseudoselector:So it overrides the blocks styles for the navigation block that try to prevent this:
Note, there seems to be an e2e test that is supposed to catch this regression:
gutenberg/test/e2e/specs/editor/blocks/navigation-colors.spec.js
Lines 131 to 185 in fced091
But while it sets group block link hover styles, it doesn't assert that the navigation hover styles are correct.
Step-by-step reproduction instructions
Also view the front end of the site and observe that link and link hover colors aren't applied, so this seems to be an inconsistency only in the editor.
Screenshots, screen recording, code snippet
No response
Environment info
Reproduced on WordPress 6.5 & 6.6
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: