Skip to content

Commit

Permalink
Move styles to the zoom out toolbar CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored and MaggieCabrera committed Jun 24, 2024
1 parent 338edda commit ea039bb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
14 changes: 14 additions & 0 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,17 @@
top: 50%;
left: 50%;
}

.zoom-out-toolbar {
&[aria-orientation="vertical"] {
display: flex;
flex-direction: column;
align-items: center;
}

.components-toolbar,
.components-toolbar-group {
background: none;
border: none;
}
}
5 changes: 1 addition & 4 deletions packages/components/src/toolbar/toolbar-group/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.components-toolbar-group {
min-height: $block-toolbar-height;
border-right: $border-width solid $gray-900;
background: $white;
display: inline-flex;
flex-shrink: 0;
flex-wrap: wrap;
Expand All @@ -13,10 +14,6 @@
margin: 0;
}

.components-accessible-toolbar:not(.zoom-out-toolbar) & {
background: $white;
}

line-height: 0;

// Size multiple sequential buttons to be optically balanced.
Expand Down
6 changes: 0 additions & 6 deletions packages/components/src/toolbar/toolbar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@

.components-accessible-toolbar,
.components-toolbar {

&[aria-orientation="vertical"] {
flex-direction: column;
align-items: center;
}

.components-button {
position: relative;
height: $block-toolbar-height;
Expand Down

0 comments on commit ea039bb

Please sign in to comment.