-
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
Logo Gallery block #11986
Logo Gallery block #11986
Conversation
/** | ||
* Internal dependencies | ||
*/ | ||
import registerJetpackBlock from '../../utils/register-jetpack-block'; |
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.
Note that we've moved files a bit around, utils are now under /extensions/shared
. Please rebase. :-)
list-style-type: none; | ||
} | ||
|
||
.logo-gallery-item { |
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.
You might want to protect this from leaking out to other "logo-gallery" blocks (by others than us) by wrapping it in wp-block-jetpack-logo-gallery
@@ -18,5 +18,5 @@ | |||
"videopress", | |||
"wordads" | |||
], | |||
"beta": [ "likes", "sharing", "seo" ] | |||
"beta": [ "likes", "sharing", "seo", "logo-gallery" ] |
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 json file got moved to extensions/index.json
. Please rebase. :-)
function jetpack_logo_gallery_block_load_assets( $attr, $content ) { | ||
$dependencies = array(); | ||
|
||
Jetpack_Gutenberg::load_assets_as_required( 'logo-gallery', $dependencies ); |
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.
If you don't have need to load view.js
, you can use Jetpack_Gutenberg::load_styles_as_required
to avoid it.
* @return string | ||
*/ | ||
function jetpack_logo_gallery_block_load_assets( $attr, $content ) { | ||
$dependencies = array(); |
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.
Empty deps array can prolly be just removed.
This PR has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this PR has clear testing instructions, is it up to date with master, and it is still valid. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation. |
Closing because of change of priorities. |
Changes proposed in this Pull Request:
This block is similar to the Gallery with a few differences:
wp-pafL3P-o0
andwp-p8F0Ux-1xQ
Screenshot of current progress
Updated Icons
Testing instructions:
Proposed changelog entry for your changes:
TODOs