Skip to content

Commit

Permalink
Switch class and selector to has-parent
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Feb 2, 2021
1 parent 04c8f8e commit b447787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function BlockContextualToolbar( { focusOnMount, ...props } ) {

// Shifts the toolbar to make room for the parent block selector.
const classes = classnames( 'block-editor-block-contextual-toolbar', {
'with-offset': hasParents,
'has-parent': hasParents,
} );

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
}

.block-editor-block-contextual-toolbar.with-offset {
.block-editor-block-contextual-toolbar.has-parent {
margin-left: calc(#{$grid-unit-60} + #{$grid-unit-10});
}

Expand Down

0 comments on commit b447787

Please sign in to comment.