Skip to content

Commit

Permalink
Navigation Block: Move the link description panel below the SEO panel…
Browse files Browse the repository at this point in the history
… because this is likely to be used signficantly less than the SEO panel. (#19917)
  • Loading branch information
apeatling authored Jan 31, 2020
1 parent cfa9a97 commit c804524
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/block-library/src/navigation-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ function NavigationLinkEdit( {
</ToolbarGroup>
</BlockControls>
<InspectorControls>
<PanelBody
title={ __( 'Link settings' ) }
>
<TextareaControl
value={ description || '' }
onChange={ ( descriptionValue ) => {
setAttributes( { description: descriptionValue } );
} }
label={ __( 'Description' ) }
help={ __( 'The description will be displayed in the menu if the current theme supports it.' ) }
/>
</PanelBody>
<PanelBody
title={ __( 'SEO settings' ) }
>
Expand Down Expand Up @@ -136,6 +124,18 @@ function NavigationLinkEdit( {
) }
/>
</PanelBody>
<PanelBody
title={ __( 'Link settings' ) }
>
<TextareaControl
value={ description || '' }
onChange={ ( descriptionValue ) => {
setAttributes( { description: descriptionValue } );
} }
label={ __( 'Description' ) }
help={ __( 'The description will be displayed in the menu if the current theme supports it.' ) }
/>
</PanelBody>
</InspectorControls>
<div className={ classnames(
'wp-block-navigation-link', {
Expand Down

0 comments on commit c804524

Please sign in to comment.