-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix nav color regression #31495
Fix nav color regression #31495
Conversation
.wp-block-navigation-link__content { | ||
// The addition of :not(.wp-block-button_link) is necessary to override generic link colors from global styles. | ||
.wp-block-pages-list__item__link:not(.wp-block-button_link), | ||
.wp-block-navigation-link__content:not(.wp-block-button_link) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could have added :not(.any-random-class)
and it would have worked. That's why I'm not really a fan of using :not in the first place. It's essentially an "allow-list" of blocks to ignore.
Size Change: +48 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
I'm looking at #31497 as an alternate fix. Happy to hear feedback. |
Closing this one in favor of #31497. Thanks André! |
Description
Fixes navigation block color regression from #30541.
Before:
After:
How has this been tested?
Insert a navigation block and add a background and foreground color. The text color of menu items should be correct.
Types of changes
This isn't a great change — it adds specificity to override specificity. But it may still be necessary.
Checklist:
*.native.js
files for terms that need renaming or removal).