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 9, 2022
1 parent 3f65736 commit c1d2ca5
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 @@ -251,7 +251,7 @@ const BlockInspectorSingleBlock = ( { clientId, blockName } ) => {
<div className="block-editor-block-inspector">
<BlockCard { ...blockInformation } />
<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,23 +7,21 @@ 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 InspectorControlsBlockInformation = createSlotFill(
'InspectorControlsBlockInformation'
);

const groups = {
default: InspectorControlsDefault,
advanced: InspectorControlsAdvanced,
blockInformation: InspectorControlsBlockInformation,
border: InspectorControlsBorder,
color: InspectorControlsColor,
dimensions: InspectorControlsDimensions,
info: InspectorControlsInfo,
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 c1d2ca5

Please sign in to comment.