-
Notifications
You must be signed in to change notification settings - Fork 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
WPCOM Block Editor: hide Gutenberg preview button #41528
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Looking good! Thanks for picking this one up, works correctly for me on an Edge site and without the Edge sticker, once sandboxed. 👍
…es don't work on WordPress.com. In v8.0 the class for these element has changed. Let's update the class and keep hiding it!
Keep the existing class for compatibility with older Gutenberg versions
fae411b
to
11ffaa6
Compare
Backend diff D42601-code |
Changes proposed in this Pull Request
We hide the Gutenberg preview dropdown list because the style overrides don't work on WordPress.com. See: #40388
In
v8.0.0-rc.1
the class name for this element has changed. Let's update the class and keep hiding it!Testing instructions
Check out this branch and build it:
npx lerna run build --scope='@automattic/wpcom-block-editor' -- -- --watch
Upload the files in
apps/wpcom-block-editor/dist
to your sandbox.YOUR_TEST_SITE_URL
should be running Gutenberg Edge (8.0.0-rc.1
)YOUR_TEST_SITE_URL
should be sandboxedTry creating a post:
https://wordpress.com/block-editor/post/[YOUR_TEST_SITE_URL]
Check that the preview button in the editor always defaults always to the mobile version
Fixes #41519