Skip to content

Commit

Permalink
Revert changes to QueryToolbar and Latest Posts block
Browse files Browse the repository at this point in the history
  • Loading branch information
priethor authored and youknowriad committed May 19, 2021
1 parent 5e499d2 commit 4325e93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
return (
<div>
{ inspectorControls }
<BlockControls group="block">
<BlockControls>
<ToolbarGroup controls={ layoutControls } />
</BlockControls>
<ul { ...blockProps }>
Expand Down
5 changes: 2 additions & 3 deletions packages/block-library/src/query/edit/query-toolbar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* WordPress dependencies
*/
import { BlockControls } from '@wordpress/block-editor';
import {
ToolbarGroup,
Dropdown,
Expand Down Expand Up @@ -40,7 +39,7 @@ export default function QueryToolbar( {
return (
<>
{ ! query.inherit && (
<BlockControls group="block">
<ToolbarGroup>
<Dropdown
contentClassName="block-library-query-toolbar__popover"
renderToggle={ ( { onToggle } ) => (
Expand Down Expand Up @@ -107,7 +106,7 @@ export default function QueryToolbar( {
</>
) }
/>
</BlockControls>
</ToolbarGroup>
) }
<ToolbarGroup controls={ layoutControls } />
</>
Expand Down

0 comments on commit 4325e93

Please sign in to comment.