Skip to content

Commit

Permalink
Rename slot and inspector controls group
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Nov 21, 2022
1 parent b322536 commit 541f769
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const BlockInspectorSingleBlock = ( {
} }
/>
<BlockVariationTransforms blockClientId={ clientId } />
<InspectorControls.Slot __experimentalGroup="blockInformation" />
<InspectorControls.Slot __experimentalGroup="info" />
{ showTabs && (
<InspectorControlsTabs
hasBlockStyles={ hasBlockStyles }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ const InspectorControlsDefault = createSlotFill( 'InspectorControls' );
const InspectorControlsAdvanced = createSlotFill( 'InspectorAdvancedControls' );
const InspectorControlsBorder = createSlotFill( 'InspectorControlsBorder' );
const InspectorControlsColor = createSlotFill( 'InspectorControlsColor' );
const InspectorControlsInfo = createSlotFill( 'InspectorControlsInfo' );
const InspectorControlsDimensions = createSlotFill(
'InspectorControlsDimensions'
);
const InspectorControlsTypography = createSlotFill(
'InspectorControlsTypography'
);
const InspectorControlsListView = createSlotFill( 'InspectorControlsListView' );
const InspectorControlsBlockInformation = createSlotFill(
'InspectorControlsBlockInformation'
);

const groups = {
default: InspectorControlsDefault,
advanced: InspectorControlsAdvanced,
blockInformation: InspectorControlsBlockInformation,
border: InspectorControlsBorder,
color: InspectorControlsColor,
dimensions: InspectorControlsDimensions,
info: InspectorControlsInfo,
list: InspectorControlsListView,
typography: InspectorControlsTypography,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/query/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const queryTopInspectorControls = createHigherOrderComponent(

return (
<>
<InspectorControls __experimentalGroup="blockInformation">
<InspectorControls __experimentalGroup="info">
<CreateNewPostLink { ...props } />
</InspectorControls>
<BlockEdit key="edit" { ...props } />
Expand Down

0 comments on commit 541f769

Please sign in to comment.