-
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
Disable Page Template picker if modal layout picker is available #23872
Conversation
Size Change: +509 B (0%) Total Size: 1.14 MB
ℹ️ View Unchanged
|
The iOS PR is still in design review but this can be reviewed and merged separately from that. |
packages/block-editor/src/components/page-template-picker/with-page-template-picker.native.js
Outdated
Show resolved
Hide resolved
packages/block-editor/src/components/page-template-picker/with-page-template-picker.native.js
Outdated
Show resolved
Hide resolved
Left some suggestions but it's working well with the test cases provided 🎉 |
Thanks for the suggestion @geriux! This has been updated now |
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.
LGTM! Tested on iOS and Android.
Fixes: wordpress-mobile/gutenberg-mobile#2419
Related PRs:
gutenberg-mobile
: Disable Page Template picker if modal layout picker is available wordpress-mobile/gutenberg-mobile#2478WordPress-iOS
: Create Modal Layout Picker Container for new Gutenberg pages and feature flag for development wordpress-mobile/WordPress-iOS#14456Description
This change enables the mobile editor to accept the capability
modalLayoutPicker
and based on that conditionally show or hide the Template Picker.Android hasn't started Modal Layout Picker yet so this only needs to
How has this been tested?
To disable or enable the development version of Modal Layout Picker
To toggle:
On iOS using the build options mentioned above
With Gutenberg Modal Layout Picker toggled on:
With Gutenberg Modal Layout Picker toggled on:
With Gutenberg Modal Layout Picker toggled off:
With Gutenberg Modal Layout Picker toggled off:
With Gutenberg Modal Layout Picker toggled on or off:
On Android running a metro server or generating a build
Types of changes
New feature
Checklist: