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: show color controls in toolbar only. #20884

Merged
merged 1 commit into from Apr 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 1 addition & 10 deletions packages/block-library/src/navigation/edit.js
Expand Up @@ -57,14 +57,7 @@ function Navigation( {
//
const ref = useRef();
const { selectBlock } = useDispatch( 'core/block-editor' );

/* eslint-disable @wordpress/no-unused-vars-before-return */
const {
TextColor,
BackgroundColor,
InspectorControlsColorPanel,
ColorPanel,
} = __experimentalUseColors(
const { TextColor, BackgroundColor, ColorPanel } = __experimentalUseColors(
[
{ name: 'textColor', property: 'color' },
{ name: 'backgroundColor', className: 'has-background' },
Expand All @@ -84,7 +77,6 @@ function Navigation( {
},
[ fontSize.size ]
);
/* eslint-enable @wordpress/no-unused-vars-before-return */

const { navigatorToolbarButton, navigatorModal } = useBlockNavigator(
clientId
Expand Down Expand Up @@ -261,7 +253,6 @@ function Navigation( {
/>
</PanelBody>
</InspectorControls>
{ InspectorControlsColorPanel }
<InspectorControls>
<PanelBody title={ __( 'Display settings' ) }>
<ToggleControl
Expand Down