Skip to content

Commit

Permalink
Move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 18, 2021
1 parent e07eae1 commit d09b75d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/block-editor/src/components/block-list/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ function BlockListBlock( {

const value = {
clientId,
// The wp-block className is important for editor styles.
className,
wrapperProps: omit( wrapperProps, [ 'data-align' ] ),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export function useBlockProps( props = {}, { __unstableIsHtml } = {} ) {
'data-type': name,
'data-title': blockTitle,
className: classnames(
'wp-block',
// The wp-block className is important for editor styles.
'wp-block block-editor-block-list__block',
className,
props.className,
wrapperProps.className,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function useBlockClassNames( clientId ) {
const activeEntityBlockId = getActiveBlockIdByBlockNames(
spotlightEntityBlocks
);
return classnames( 'block-editor-block-list__block', {
return classnames( {
'is-selected': isSelected,
'is-highlighted': isBlockHighlighted( clientId ),
'is-multi-selected': isBlockMultiSelected( clientId ),
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/utils/dom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Consider the block appender to be a child block of its own, which also has
// this class. Cannot be `.wp-block` because it is used for alignment wrappers.
// this class.
const BLOCK_SELECTOR = '.wp-block';

/**
Expand Down

0 comments on commit d09b75d

Please sign in to comment.