-
Notifications
You must be signed in to change notification settings - Fork 805
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
Map Block: Use the block styles API for choosing map themes #14852
Conversation
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: April 7, 2020. |
Some early notes:
|
Sounds like we should open a core patch for that |
It did work before this change, but now it doesn't :) |
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.
This is a really good direction. We have a custom component which does something similar, but if we can do it this way that would be ideal!
We just need to get it working on the frontend...
There's an annoying margin at the top of the previews, which I have a fix for here: WordPress/gutenberg#19983 |
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.
I agree with @scruffian, this is a better pattern than we have at the moment. Let's get it working along with any core patches needed!
Ran through and tested this and it worked as expected and mentioned in the instructions. I like the experience of using block styles for this. Agreed that we should submit a core PR to allow the style panel to be open by default, it'll be incredibly easy to miss this otherwise. |
Caution: This PR has changes that must be merged to WordPress.com |
pento, Your synced wpcom patch D39810-code has been updated. |
1 similar comment
pento, Your synced wpcom patch D39810-code has been updated. |
This PR has generated two Gutenberg PRs:
I've also switched back to storing the map style in the |
pento, Your synced wpcom patch D39810-code has been updated. |
I added a commit to bring this into line with how we do things with Tiled Gallery. It also makes the code a bit simpler. |
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!
… block updates to the new one
…Name attribute not being set in the old block.
31537fa
to
285323a
Compare
pento, Your synced wpcom patch D39810-code has been updated. |
pento, Your synced wpcom patch D39810-code has been updated. |
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.
Hopefully for the last time 😄
pento, Your synced wpcom patch D39810-code has been updated. |
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.
I tested it on a fresh install and on an install bringing in an older version of the block. Both worked as expected as described in the ticket.
Fusion is failing because of new files. I'm working on that now to update the phab.
@Automattic/jetpack-crew: Could someone merge this, please? It looks like the tests are now passing on the diff (thanks, @kraftbj!), but it hasn't synced the status, so merge is blocked for me. |
@pento Unblocked! Please merge this (and the corresponding WP.com diff) at your leisure. |
* Initial changelog entry * Changelog: add #14904 * Changelog: add #14910 * Changelog: add #14913 * Changelog: add #14916 * Changelog: add #14922 * Changelog: add #14924 * Changelog: add #14925 * Changelog: add #14928 * Changelog: add #14840 * Changelog: add #14841 * Changelog: add #14842 * Changelog: add #14826 * Changelog: add #14835 * Changelog: add #14859 * Changelog: add #14884 * Changelog: add #14888 * Changelog: add #14817 * Changelog: add #14814 * Changelog: add #14819 * Changelog;: add #14797 * Changelog: add #14798 * Changelog: add #14802 * Changelog: add #13676 * Changelog: add #13744 * Changelog: add #13777 * Changelog: add #14446 * Changelog: add #14739 * Changelog: add #14770 * Changelog: add #14784 * Changelog: add #14897 * Changelog: add #14898 * Changelog: add #14968 * Changelog: add #14985 * Changelog: add #15044 * Changelog: add #15052 * Update to remove Podcast since it remains in Beta * Changelog: add #14803 * Changelog: add #15028 * Changelog: add #15065 * Changelog:add #14886 * Changelog: add #15118 * Changelog: add #14990 * Changelog: add #14528 * Changelog: add #15120 * Changelog: add #15126 * Changelog: add #15049 * Chanegelog: add #14852 * Changelog: add #15090 * Changelog: add #15138 * Changelog: add #15124 * Changelog:add #15055 * Changelog: add #15017 * Changelog: add #15109 * Changelog: add #15145 * Changelog:add #15096 * Changelog:add #15153 * Changelog: add #15133 * Changelog: add #14960 * Changelog: add #15127 * Changelog: add #15056 * Copy current changelog to changelog archive. * Clarify changelog description
This PR switches the map block over to using the block styles attribute, rather than the custom theme picker.
Fixes #14559
Changes proposed in this Pull Request:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Testing instructions:
Proposed changelog entry for your changes: