-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Gutenberg] Hide help button from UBE #17644
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
In order to allow custom, external CSS styles, the pattern set for allowing custom JS scripts has been followed i.e. a function similar to 'onGutenbergReadyScripts()' has been created, 'onGutenbergReadyStyles()', along with a function for processing the styles, 'loadCustomStyles()'.
WordPress/Classes/ViewRelated/Gutenberg/GutenbergWeb/GutenbergWebViewController.swift
Show resolved
Hide resolved
@@ -82,6 +82,12 @@ class GutenbergWebViewController: GutenbergWebSingleBlockViewController, WebKitA | |||
].compactMap { $0 } | |||
} | |||
|
|||
override func onGutenbergReadyStyles() -> [WKUserScript] { |
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.
Just wanted to flag this comment from the Gutenberg PR about the function name.
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.
Thank you, changed in 9a2cf3b. Let me know if you have further thoughts on the naming, though!
Following the refactoring of the SourceFile function (as outlined here: WordPress/gutenberg@0cda8b3), the loadCustomStyles function can now be simplified to just call SourceFile() directly.
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 @SiobhyB to merge after pointing to the appropriate tag. 👍
Addresses wordpress-mobile/gutenberg-mobile#4339
Related PRs and Installable Builds
Gutenberg
: [RNMobile] Hide help button from UBE WordPress/gutenberg#37221Gutenberg Mobile
: Hide help button from UBE gutenberg-mobile#4352WPAndroid
: [Gutenberg] Hide help button from UBE WordPress-Android#15674Description
As described in wordpress-mobile/gutenberg-mobile#4339, a help button is currently displaying in the bottom right-hand corner of the unsupported block editor (UBE) in both the Android and iOS apps. The button can be seen while logged into WordPress.com. When tapped on, the button has no impact on iOS.
With this PR, the button is hidden from view in order to avoid confusion and potential loss of edits. A high-level overview of the code changes can be found in the
Types of changes
section of the Gutenberg PR.Testing
Please refer to the Gutenberg PR as the "central PR" with the most up-to-date testing instructions.
PR submission checklist:
RELEASE-NOTES.txt
if necessary.