Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
independently customise fixed top toolbar for the customizer editor
  • Loading branch information
draganescu committed Sep 7, 2023
commit 4befe312359a2d4dc09cc0ac1c3dec6ed1592db6
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ function BlockContextualToolbar( { focusOnMount, isFixed, ...props } ) {
return;
}

// bail if we're in the customizer
if ( document.body.classList.contains( 'wp-customizer' ) ) {
return;
}

const blockToolbar = document.querySelector(
'.block-editor-block-contextual-toolbar'
);
Expand Down
5 changes: 0 additions & 5 deletions packages/block-editor/src/components/block-tools/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@
& > .block-editor-block-toolbar__group-collapse-fixed-toolbar {
border: none;

.wp-customizer & {
// In the customizer, the collapse button is not shown.
display: none;
}

.show-icon-labels & {
.components-button.has-icon {
// Hide the button icons when labels are set to display...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
// Offset the customizer's sidebar padding.
margin-left: -$grid-unit-15;
margin-right: -$grid-unit-15;
width: calc(100% + #{ $grid-unit-30 });
// added important to override the inline style coming from
// the block-editor/block-contextual-toolbar component.
width: calc(100% + #{ $grid-unit-30 }) !important;

& > .block-editor-block-toolbar__group-collapse-fixed-toolbar {
display: none;
}

// Scroll sideways.
overflow-y: auto;
Expand Down