Skip to content

Commit

Permalink
Navigation block: show color controls in toolbar only.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Mar 27, 2020
1 parent 7b2a7a3 commit 96bd7af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/block-library/src/navigation/edit.js
Expand Up @@ -61,12 +61,7 @@ function Navigation( {
const ref = useRef();
const { selectBlock } = useDispatch( 'core/block-editor' );

const {
TextColor,
BackgroundColor,
InspectorControlsColorPanel,
ColorPanel,
} = __experimentalUseColors(
const { TextColor, BackgroundColor, ColorPanel } = __experimentalUseColors(
[
{ name: 'textColor', property: 'color' },
{ name: 'backgroundColor', className: 'has-background' },
Expand Down Expand Up @@ -243,7 +238,6 @@ function Navigation( {
/>
</PanelBody>
</InspectorControls>
{ InspectorControlsColorPanel }
<InspectorControls>
<PanelBody title={ __( 'Display settings' ) }>
<ToggleControl
Expand Down

0 comments on commit 96bd7af

Please sign in to comment.