-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Site Editor: Fix button hover style in sidebar navigation screen #66505
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
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +6 B (0%) Total Size: 1.81 MB
ℹ️ View Unchanged
|
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.
Well spotted, and thank you for the fix
so the expected styles by the
.components-button
selector are no longer applied.
Yet another instance of folks using internal classnames, which then breaks styles when the implementation details change.
I'm soon going to work on a public document including several DOs and DON'Ts — but let's also try to actively discourage folks from doing it every time we spot it in a PR (cc @WordPress/gutenberg-components @WordPress/gutenberg-design )
Thanks for the review! Note: Since this issue first appeared in WordPress 6.7, we need to backport this PR. |
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 69c9185 |
…dPress#66505) Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
Follow-up #65361
What?
This PR fixes the styling of items in the site editor's navigation screen.
Why?
In #65361, buttons in the list view were replaced with
a
elements instead ofButton
components, so the expected styles by the.components-button
selector are no longer applied.Testing Instructions
Screenshots or screencast
In the screenshot below, each item has the following states. Make sure the correct text color is applied to items in either state.