Skip to content

Commit

Permalink
normalize the slot names
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Feb 26, 2021
1 parent 0100aeb commit 450f03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-controls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import useDisplayBlockControls from '../use-display-block-controls';

const BlockControlsDefault = createSlotFill( 'BlockControls' );
const BlockControlsBlock = createSlotFill( 'BlockFormatControlsBlock' );
const BlockControlsBlock = createSlotFill( 'BlockControlsBlock' );
const BlockControlsInline = createSlotFill( 'BlockFormatControls' );
const BlockControlsOther = createSlotFill( 'BlockControlsOther' );

Expand All @@ -33,7 +33,7 @@ const segments = {

const slotNames = {
default: 'BlockControls',
block: 'BlockFormatControlsBlock',
block: 'BlockControlsBlock',
inline: 'BlockFormatControls',
other: 'BlockControlsOther',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ export default function BlockToolbar( { hideDragHandle } ) {
</div>
{ shouldShowVisualToolbar && (
<>
{ ' ' }
<BlockControls.Slot
segment="block"
className="block-editor-block-toolbar__slot"
Expand Down

0 comments on commit 450f03b

Please sign in to comment.