Repository navigation
19.8 Edit Site: styles nav item does not open on mobile for themes without style variations - #67550
Conversation
…m in the edit site sidebar. Also, move its uid prop to MainSidebarNavigationContent for consistency and convenience. Why? When a block theme lacks global style variations, the top-level Styles panel in the Site Editor does not open on mobile. The sidebar navigation styles item now contains the global styles UI and no longer just the variations so the `hasGlobalStyleVariations` causes the bug and is, also, redundant.
|
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: -34 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 98a482b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12153591757
|
talldan
left a comment
There was a problem hiding this comment.
Tests well for me.
It's interesting the way the little style preview in the sidebar doesn't expands on mobile, but I guess this is a separate bug. It makes it looks like there's a double horizontal rule:
Kapture.2024-12-04.at.14.06.11.mp4
aaronrobertshaw
left a comment
There was a problem hiding this comment.
This is testing as advertised for me.
The only difference I spotted between the changes here and the linked PR was this didn't add the to="/styles" prop. Was that intended?
Here's what I'm seeing:
Screen.Recording.2024-12-04.at.4.01.53.pm.mp4
|
Thanks a lot for testing @aaronrobertshaw
The Cheers! |
Thanks @talldan Funny you should mention that 😄 |
What?
Resolves #67532 for 19.8
hasGlobalStyleVariationscondition to show the Styles menu item in the edit site sidebar.uidprop toMainSidebarNavigationContentfor consistency and convenience.Why a hotfix for this branch?
Since #67199 a few things have changed in trunk so this PR targets the state of 19.8 only.
In trunk this bug has been fixed by the following PRs:
hasGlobalStyleVariationscondition for the Styles nav item #67545Why?
BUG! When a block theme doesn't have style variations, the newer experience for top level styles in the Site Editor does not open on mobile.
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.16.19.37.mp4