Skip to content

Commit

Permalink
[Block: Group] Transform to row variation
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan committed Nov 4, 2021
1 parent 40ff1e5 commit f46a4d5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/block-library/src/group/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@
import { __ } from '@wordpress/i18n';

const variations = [
{
name: 'group',
title: __( 'Group' ),
description: __( 'Blocks shown in a column.' ),
attributes: { layout: { type: 'default' } },
scope: [ 'inserter', 'transform' ],
isActive: ( blockAttributes ) =>
blockAttributes.layout?.type === 'default',
},
{
name: 'group-row',
title: __( 'Row' ),
description: __( 'Blocks shown in a row.' ),
attributes: { layout: { type: 'flex', allowOrientation: false } },
scope: [ 'inserter' ],
scope: [ 'inserter', 'transform' ],
isActive: ( blockAttributes ) =>
blockAttributes.layout?.type === 'flex',
},
Expand Down

0 comments on commit f46a4d5

Please sign in to comment.