Skip to content

Commit

Permalink
Hide the orientation switcher from the group block (#39650)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 23, 2022
1 parent ec2ac14 commit 76e1eb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/block-library/src/group/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@
"fontSize": true
}
},
"__experimentalLayout": true
"__experimentalLayout": {
"allowOrientation": false
}
},
"editorStyle": "wp-block-group-editor",
"style": "wp-block-group"
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/group/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const variations = [
name: 'group-row',
title: __( 'Row' ),
description: __( 'Blocks shown in a row.' ),
attributes: { layout: { type: 'flex', allowOrientation: false } },
attributes: { layout: { type: 'flex' } },
scope: [ 'inserter', 'transform' ],
isActive: ( blockAttributes ) =>
blockAttributes.layout?.type === 'flex',
Expand Down

0 comments on commit 76e1eb5

Please sign in to comment.