Skip to content

Commit 473bf49

Browse files
Rename slot and inspector controls group
1 parent 729b9a8 commit 473bf49

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/block-editor/src/components/block-inspector/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const BlockInspectorSingleBlock = ( { clientId, blockName } ) => {
251251
<div className="block-editor-block-inspector">
252252
<BlockCard { ...blockInformation } />
253253
<BlockVariationTransforms blockClientId={ clientId } />
254-
<InspectorControls.Slot __experimentalGroup="blockInformation" />
254+
<InspectorControls.Slot __experimentalGroup="info" />
255255
{ showTabs && (
256256
<InspectorControlsTabs
257257
hasBlockStyles={ hasBlockStyles }

packages/block-editor/src/components/inspector-controls/groups.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,21 @@ const InspectorControlsDefault = createSlotFill( 'InspectorControls' );
77
const InspectorControlsAdvanced = createSlotFill( 'InspectorAdvancedControls' );
88
const InspectorControlsBorder = createSlotFill( 'InspectorControlsBorder' );
99
const InspectorControlsColor = createSlotFill( 'InspectorControlsColor' );
10+
const InspectorControlsInfo = createSlotFill( 'InspectorControlsInfo' );
1011
const InspectorControlsDimensions = createSlotFill(
1112
'InspectorControlsDimensions'
1213
);
1314
const InspectorControlsTypography = createSlotFill(
1415
'InspectorControlsTypography'
1516
);
16-
const InspectorControlsBlockInformation = createSlotFill(
17-
'InspectorControlsBlockInformation'
18-
);
1917

2018
const groups = {
2119
default: InspectorControlsDefault,
2220
advanced: InspectorControlsAdvanced,
23-
blockInformation: InspectorControlsBlockInformation,
2421
border: InspectorControlsBorder,
2522
color: InspectorControlsColor,
2623
dimensions: InspectorControlsDimensions,
24+
info: InspectorControlsInfo,
2725
typography: InspectorControlsTypography,
2826
};
2927

packages/block-library/src/query/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const queryTopInspectorControls = createHigherOrderComponent(
4040

4141
return (
4242
<>
43-
<InspectorControls __experimentalGroup="blockInformation">
43+
<InspectorControls __experimentalGroup="info">
4444
<CreateNewPostLink { ...props } />
4545
</InspectorControls>
4646
<BlockEdit key="edit" { ...props } />

0 commit comments

Comments
 (0)