Skip to content

Commit

Permalink
Fix Content Only Toolbar icon focus style (#64940)
Browse files Browse the repository at this point in the history
Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: getdave <get_dave@git.wordpress.org>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent e1ad8c2 commit f1aa523
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions packages/block-editor/src/components/block-switcher/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,6 @@
}
}

// Style this the same as the block buttons in the library.
// Needs specificity to override the icon button.
.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,
.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon,
.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon,
.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon {
.block-editor-block-icon {
height: 100%;
position: relative;
margin: 0 auto;
display: flex;
align-items: center;
min-width: 100%;
}

// Position the focus style correctly.
&::before {
top: $grid-unit-10;
right: $grid-unit-10;
bottom: $grid-unit-10;
left: $grid-unit-10;
}
}

.components-popover.block-editor-block-switcher__popover .components-popover__content {
min-width: 300px;
}
Expand Down

0 comments on commit f1aa523

Please sign in to comment.