-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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]: Always show the Styles
navigation item
#50573
Conversation
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 works as expected.
I tested it based on the spec from this comment - #50429 (comment). Using TT3 and emptytheme without variations.
Size Change: +249 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Personally, I don't like this change. I don't think the menu item should send you to a different page depending on what a theme contain or not. It's a very weird behavior that has the potential to confuse users. cc @jasmussen |
Apologies for missing this. I hear you. The alternative is to do this: The key here is that the styles menu item is always present for consistent navigation and to provide a deep-link shortcut to editing global styles. I also suspect this general problem with be transient as the Styles section is not meant to only ever house style variations. It is meant to house color palettes you can swap between, font pairings, variations, possibly other items, each as their own subsequent drilldown. |
What?
Resolves: #50429
This PR always displays the
Styles
navigation item in site editor sidebar. If a theme has global style variations, clicking the menu item will display the GS screen in sidebar. If a theme doesn't have any, the.Styles
item will open the Edit view, with the Global Styles panel open.Testing Instructions