Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Block: Move the Link Settings panel #19917

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -104,18 +104,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 @@ -146,6 +134,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