Skip to content

Commit

Permalink
Fix label only mode parent selector. (#28721)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Feb 4, 2021
1 parent 1018c9d commit d2a36ec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,25 @@

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

.show-icon-labels & {
margin-left: 0;
}
}

.block-editor-block-parent-selector {
position: absolute;
top: -$border-width;
left: calc(-#{$grid-unit-60} - #{$grid-unit-10} - #{$border-width});

.show-icon-labels & {
position: relative;
left: auto;
top: auto;
margin-top: -$border-width;
margin-left: -$border-width;
margin-bottom: -$border-width;
}
}

// Block controls.
Expand Down

0 comments on commit d2a36ec

Please sign in to comment.