Skip to content

Commit 884c534

Browse files
committed
Remove has-center class name
1 parent 574b8bc commit 884c534

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

packages/editor/src/components/header/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
* External dependencies
3-
*/
4-
import clsx from 'clsx';
5-
61
/**
72
* WordPress dependencies
83
*/
@@ -92,11 +87,7 @@ function Header( {
9287
// The edit-post-header classname is only kept for backward compatibilty
9388
// as some plugins might be relying on its presence.
9489
return (
95-
<div
96-
className={ clsx( 'editor-header edit-post-header', {
97-
'has-center': hasCenter,
98-
} ) }
99-
>
90+
<div className="editor-header edit-post-header">
10091
{ hasBackButton && (
10192
<motion.div
10293
className="editor-header__back-button"

packages/editor/src/components/header/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
display: grid;
55
grid-auto-flow: row;
66
grid-template: auto / $header-height minmax(0, max-content) minmax(min-content, 1fr) $header-height;
7-
&.has-center {
7+
&:has(> .editor-header__center) {
88
grid-template: auto / $header-height min-content 1fr min-content $header-height;
99
@include break-medium {
1010
grid-template: auto / $header-height minmax(min-content, 1fr) 2fr minmax(min-content, 1fr) $header-height;
@@ -98,7 +98,7 @@
9898

9999
.editor-header__settings {
100100
grid-column: 3 / -1;
101-
.has-center & {
101+
.editor-header:has(> .editor-header__center) & {
102102
grid-column: 4 / -1;
103103
}
104104
justify-self: end;

0 commit comments

Comments
 (0)