Skip to content

Commit

Permalink
Fix: Update sidebar style for WordPress 6.7 compatibility (#7603)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Waldstein <[email protected]>
  • Loading branch information
jonwaldstein and Jon Waldstein authored Nov 5, 2024
1 parent 7dd209e commit 4517963
Showing 1 changed file with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@
//overflow: hidden; // The Inspector Popout needs to be visible.
overflow-y: scroll;

// WP 6.6+ - hide the Blocks, Patterns, Media tabs
&.givewp-next-gen-sidebar-secondary {
.block-editor-inserter__tablist-and-close-button {
display: none;
}
}

&.givewp-next-gen-sidebar-primary {
.block-editor-block-inspector {
> h2 {
Expand Down Expand Up @@ -315,3 +308,30 @@
.iti {
width: 100%;
}

/**
* WordPress 6.6 compatibility
*/
.givewp-next-gen-sidebar-secondary {
// Hide the Blocks, Patterns, Media tabs
.block-editor-inserter__tablist-and-close-button {
display: none;
}
}


/**
* WordPress 6.7 compatibility
*/
.givewp-next-gen-sidebar-secondary {
// Hide the Blocks, Patterns, Media tabs (css name change)
.block-editor-tabbed-sidebar__tablist-and-close-button {
display: none;
}

// WP adds a fixed width to the tabbed sidebar, we need to override it
.block-editor-inserter__main-area .block-editor-tabbed-sidebar {
width: 100%;
}
}

0 comments on commit 4517963

Please sign in to comment.