diff --git a/packages/block-library/src/group/edit.js b/packages/block-library/src/group/edit.js
index 9920b05c334b56..8863007910b2ab 100644
--- a/packages/block-library/src/group/edit.js
+++ b/packages/block-library/src/group/edit.js
@@ -5,12 +5,17 @@ import { useSelect } from '@wordpress/data';
import {
InnerBlocks,
useBlockProps,
+ InspectorAdvancedControls,
__experimentalUseInnerBlocksProps as useInnerBlocksProps,
} from '@wordpress/block-editor';
-import { __experimentalBoxControl as BoxControl } from '@wordpress/components';
+import {
+ SelectControl,
+ __experimentalBoxControl as BoxControl,
+} from '@wordpress/components';
+import { __ } from '@wordpress/i18n';
const { __Visualizer: BoxControlVisualizer } = BoxControl;
-function GroupEdit( { attributes, clientId } ) {
+function GroupEdit( { attributes, setAttributes, clientId } ) {
const hasInnerBlocks = useSelect(
( select ) => {
const { getBlock } = select( 'core/block-editor' );
@@ -34,13 +39,33 @@ function GroupEdit( { attributes, clientId } ) {
);
return (
-
-
-
-
+ <>
+
+ )' ), value: 'div' },
+ { label: '', value: 'header' },
+ { label: '', value: 'main' },
+ { label: '', value: 'section' },
+ { label: '', value: 'article' },
+ { label: '
+
+
+
+
+ >
);
}
diff --git a/packages/block-library/src/template-part/edit/index.js b/packages/block-library/src/template-part/edit/index.js
index da36745fd4b3ce..2e42f44a34ad84 100644
--- a/packages/block-library/src/template-part/edit/index.js
+++ b/packages/block-library/src/template-part/edit/index.js
@@ -78,28 +78,26 @@ export default function TemplatePartEdit( {
);
}
- const inspectorAdvancedControls = (
-
- )' ), value: 'div' },
- { label: '', value: 'header' },
- { label: '', value: 'main' },
- { label: '', value: 'section' },
- { label: '', value: 'article' },
- { label: '
- );
-
return (
<>
- { inspectorAdvancedControls }
+
+ )' ), value: 'div' },
+ { label: '', value: 'header' },
+ { label: '', value: 'main' },
+ { label: '', value: 'section' },
+ { label: '', value: 'article' },
+ { label: '
{ isPlaceholder && (