Skip to content

Commit

Permalink
fix: disable row group block variation (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe authored Mar 22, 2022
1 parent 2c1c6a3 commit 82224ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editor/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { unregisterBlockStyle } from '@wordpress/blocks';
import { unregisterBlockStyle, unregisterBlockVariation } from '@wordpress/blocks';
import domReady from '@wordpress/dom-ready';
import { addFilter, removeFilter } from '@wordpress/hooks';
import { registerPlugin } from '@wordpress/plugins';
Expand All @@ -27,11 +27,13 @@ registerEmbedBlockEdit();
registerMergeTagsFilters();
registerVisibilityFilters();

/* Unregister core block styles that are unsupported in emails */
domReady( () => {
/* Unregister core block styles that are unsupported in emails */
unregisterBlockStyle( 'core/separator', 'dots' );
unregisterBlockStyle( 'core/social-links', 'logos-only' );
unregisterBlockStyle( 'core/social-links', 'pill-shape' );
/* Unregister "row" group block variation */
unregisterBlockVariation( 'core/group', 'group-row' );
} );

/* Remove Duotone filters */
Expand Down

0 comments on commit 82224ff

Please sign in to comment.