Skip to content

Commit

Permalink
Block Toolbar: Fix text only label for locked blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 25, 2023
1 parent f10f85f commit feee8d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 11 additions & 4 deletions packages/block-editor/src/components/block-lock/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,17 @@
.block-editor-block-lock-toolbar {
.components-button.has-icon {
min-width: $button-size-small + $grid-unit-15 !important;
padding-left: 0 !important;
}
}

&:focus::before {
right: $grid-unit-10 !important;
}
.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar {
margin-left: -$grid-unit-15 * 0.5 !important;
}

.show-icon-labels {
.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar {
border-left: 1px solid $gray-900;
margin-left: $grid-unit-15 * 0.5 !important;
margin-right: -$grid-unit-15 * 0.5;
}
}
4 changes: 0 additions & 4 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@
}
}

.block-editor-block-lock-toolbar {
margin-left: -$grid-unit-15 * 0.5 !important;
}

// @todo: override toolbar group inherited paddings from components/block-tools/style.scss.
// This is best fixed by making the mover control area a proper single toolbar group.
.components-toolbar-group {
Expand Down

0 comments on commit feee8d5

Please sign in to comment.