-
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
Site Editor Sidebar: remove hasGlobalStyleVariations
condition for the Styles nav item
#67545
Site Editor Sidebar: remove hasGlobalStyleVariations
condition for the Styles nav item
#67545
Conversation
…and no longer just the variations. For this reason it's okay to remove the condition. Also, make the props consistent in the main component.
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: -32 B (0%) Total Size: 1.83 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.
The change makes sense to me but I'm struggling to reproduce the issue with themes without variations (I'm testing by removing the variation from Empty Theme).
Thanks for testing @tellthemachines I installed the theme onyxpulse, which doesn't have variations. |
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 know what happened, I tested trunk after #67537 was already merged 😄
LGTM!
Since this is just a code quality follow-up to #67537 and generates conflicts with 19.8, let's skip the backport to 19.8. Thanks for following up with the polishing, though! ❤️ |
Sorry, I forgot to remove the label. Thank you! |
…the Styles nav item (WordPress#67545) Co-authored-by: ramonjd <[email protected]> Co-authored-by: tellthemachines <[email protected]>
…the Styles nav item (#67545) Co-authored-by: ramonjd <[email protected]> Co-authored-by: tellthemachines <[email protected]>
What?
Follow up to #67537
cc @Mayank-Tripathi32
👋🏻
hasGlobalStyleVariations
condition to show the Styles menu item in the edit site sidebar.uid
andto
props toMainSidebarNavigationContent
for consistency and convenience.Why?
The sidebar navigation styles item now contains the global styles UI and no longer just the variations. For this reason it's okay to remove the condition.
Testing Instructions
Screenshots or screencast
Kapture.2024-12-04.at.10.54.14.mp4