Skip to content

Commit

Permalink
Stabilize block library uses of group
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Jan 19, 2023
1 parent 637957d commit f075f49
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function ButtonEdit( props ) {
setAttributes={ setAttributes }
/>
</InspectorControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
label={ __( 'Link rel' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function CommentsInspectorControls( {
};
return (
<InspectorControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
label={ __( 'HTML element' ) }
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/cover/edit/inspector-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default function CoverInspectorControls( {
</PanelBody>
) }
</InspectorControls>
<InspectorControls __experimentalGroup="color">
<InspectorControls group="color">
<ColorGradientSettingsDropdown
__experimentalIsRenderedInSidebar
settings={ [
Expand Down Expand Up @@ -281,7 +281,7 @@ export default function CoverInspectorControls( {
/>
</ToolsPanelItem>
</InspectorControls>
<InspectorControls __experimentalGroup="dimensions">
<InspectorControls group="dimensions">
<ToolsPanelItem
hasValue={ () => !! minHeight }
label={ __( 'Minimum height' ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/group/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
),
};
return (
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
label={ __( 'HTML element' ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ export default function Image( {
/>
</PanelBody>
</InspectorControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
label={ __( 'Title attribute' ) }
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ function Navigation( {
</PanelBody>
) }
</InspectorControls>
<InspectorControls __experimentalGroup="color">
<InspectorControls group="color">
{ hasColorSettings && (
<>
<ColorGradientSettingsDropdown
Expand Down Expand Up @@ -857,7 +857,7 @@ function Navigation( {
/>
{ stylingInspectorControls }
{ isEntityAvailable && (
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
{ hasResolvedCanUserUpdateNavigationMenu &&
canUserUpdateNavigationMenu && (
<NavigationMenuNameControl />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MenuInspectorControls = ( props ) => {
: undefined;

return (
<InspectorControls __experimentalGroup={ menuControlsSlot }>
<InspectorControls group={ menuControlsSlot }>
<PanelBody
title={
isOffCanvasNavigationEditorEnabled ? null : __( 'Menu' )
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function ParagraphBlock( {
/>
</BlockControls>
{ isDropCapFeatureEnabled && (
<InspectorControls __experimentalGroup="typography">
<InspectorControls group="typography">
<ToolsPanelItem
hasValue={ () => !! dropCap }
label={ __( 'Drop cap' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const DimensionControls = ( {
};
const scaleLabel = _x( 'Scale', 'Image scaling options' );
return (
<InspectorControls __experimentalGroup="dimensions">
<InspectorControls group="dimensions">
<ToolsPanelItem
className="single-column"
hasValue={ () => !! height }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-featured-image/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Overlay = ( {
style={ overlayStyles }
/>
) }
<InspectorControls __experimentalGroup="color">
<InspectorControls group="color">
<ColorGradientSettingsDropdown
__experimentalIsRenderedInSidebar
settings={ [
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-terms/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function PostTermsEdit( {
} }
/>
</BlockControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
autoComplete="off"
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/query/edit/query-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default function QueryContent( {
openPatternSelectionModal={ openPatternSelectionModal }
/>
</BlockControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<SelectControl
__nextHasNoMarginBottom
label={ __( 'HTML element' ) }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/social-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const SocialLinkEdit = ( {
</PanelRow>
</PanelBody>
</InspectorControls>
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
<TextControl
label={ __( 'Link rel' ) }
value={ rel || '' }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/social-links/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function SocialLinksEdit( props ) {
/>
</PanelBody>
</InspectorControls>
<InspectorControls __experimentalGroup="color">
<InspectorControls group="color">
{ colorSettings.map(
( { onChange, label, value, resetAllFilter } ) => (
<ColorGradientSettingsDropdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function TemplatePartAdvancedControls( {
};

return (
<InspectorControls __experimentalGroup="advanced">
<InspectorControls group="advanced">
{ isEntityAvailable && (
<>
<TextControl
Expand Down

0 comments on commit f075f49

Please sign in to comment.