-
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: show pattern category step in navigation for mobile #67505
base: trunk
Are you sure you want to change the base?
Conversation
@@ -155,9 +155,10 @@ function Layout() { | |||
isResizableFrameOversized | |||
} | |||
/> | |||
{ areas.mobile } |
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.
TODO: add an inline comment explaining what's going on here.
// The mobile sidebar needs access to the SidebarNavigationContext.Provider inside SidebarContent
.
Size Change: +50 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
Flaky tests detected in e6d7551. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12151813691
|
…ebar in sitecontent to get the context, also rendering edit mode.
f75d6c2
to
990a1c9
Compare
…outes/templates.js as they're taken care of in #67547
Ensure template parts can be accessed from the patterns sidebar
What?
So that users can access template parts in mobile view from the patterns panel, show the patterns category list.
Props to @t-hamano for the nudge.
See: #67460 (comment)
Note
There is a known inconsistency in the WP logo navigation: when you enter the data view for a patterns category, the WP logo takes you back to the main Design menu (not back a step).
Why?
In themes such as TT4, the "All patterns" view won't show the template parts and are therefor inaccessible.
How?
Checking for postType and categoryId. If it's there, show
<PagePatterns />
.Testing Instructions
Screenshots or screencast
Before
Kapture.2024-12-04.at.13.25.01.mp4
After
Kapture.2024-12-04.at.13.20.51.mp4