Skip to content

Commit

Permalink
Remove negative toolbar position rules from full-aligned blocks. (#14669
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kjellr authored Mar 28, 2019
1 parent a66fa9b commit a3ef292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,12 @@
.block-editor-block-contextual-toolbar > * {
pointer-events: auto;
}

// Full-aligned blocks have negative margins on the parent of the toolbar, so additional position adjustment is not required.
&[data-align="full"] .block-editor-block-contextual-toolbar {
left: 0;
right: 0;
}
}

.block-editor-block-list__block.is-focus-mode:not(.is-multi-selected) > .block-editor-block-contextual-toolbar {
Expand Down

0 comments on commit a3ef292

Please sign in to comment.