Skip to content

Commit

Permalink
Block Toolbar: Fix text only label for locked blocks (#50944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Jun 13, 2023
1 parent 1592979 commit 46e4e9f
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

1 comment on commit 46e4e9f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 46e4e9f.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5251220551
📝 Reported issues:

Please sign in to comment.