Skip to content

Commit

Permalink
Fix block toolbar height and rounded corners of parent selector butto…
Browse files Browse the repository at this point in the history
…n when text label mode (#49556)

* Unifiy height of the block toolbar when "Show button text labels" mode is enabled

* Fix rounded corners on parent selector

* Remove border between move buttons
  • Loading branch information
t-hamano authored Apr 17, 2023
1 parent f34b4ac commit 4422131
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/block-editor/src/components/block-toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
// Parent selector overrides

.block-editor-block-parent-selector__button {
border-top-right-radius: 0;
border-bottom-right-radius: 0;

.block-editor-block-icon {
width: 0;
}
Expand Down Expand Up @@ -204,18 +207,10 @@

.block-editor-block-mover__move-button-container {
border-left: 1px solid $gray-900;

&::before {
content: "";
display: block;
height: 1px;
background: $gray-900;
order: 2;
}
}

.is-down-button.is-down-button.is-down-button {
order: 3;
order: 2;
}

.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container::before {
Expand Down

1 comment on commit 4422131

@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 4422131.
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/4721413452
📝 Reported issues:

Please sign in to comment.