Skip to content
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

Feat: 🎉 Add option to remove the grow effect from linked Icon Block SVG images #314

Merged
merged 1 commit into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function ucsc_setup() {
/*
* Load additional Core block styles.
*/
$styled_blocks = array( 'core/button', 'core/columns', 'core/post-template', 'core/post-author', 'core/site-title', 'core/query-pagination', 'core/post-content', 'core/rss', 'core/post-title', 'core/post-comments', 'core/navigation', 'core/list', 'core/separator', 'core/latest-posts', 'core/quote', 'core/image', 'core/search', 'core/paragraph', 'ucscblocks/accordion', 'core/details' );
$styled_blocks = array( 'core/button', 'core/columns', 'core/post-template', 'core/post-author', 'core/site-title', 'core/query-pagination', 'core/post-content', 'core/rss', 'core/post-title', 'core/post-comments', 'core/navigation', 'core/list', 'core/separator', 'core/latest-posts', 'core/quote', 'core/image', 'core/search', 'core/paragraph', 'ucscblocks/accordion', 'core/details','outermost/icon-block' );
foreach ( $styled_blocks as $block ) {

$name = explode('/', $block);
Expand Down
3 changes: 3 additions & 0 deletions wp-blocks/icon-block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.is-style-remove-hover a:hover {
transform: none;
}
5 changes: 5 additions & 0 deletions wp-blocks/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ wp.domReady( () => {
name: 'check',
label: 'Check mark',
} );
// Style for outermost/icon-block
wp.blocks.registerBlockStyle( 'outermost/icon-block', {
name: 'remove-hover',
label: 'Remove hover',
} );
} );