diff --git a/packages/e2e-tests/specs/editor/various/a11y.test.js b/packages/e2e-tests/specs/editor/various/a11y.test.js index 8f16e6a7ac636..0ca44d7fb7114 100644 --- a/packages/e2e-tests/specs/editor/various/a11y.test.js +++ b/packages/e2e-tests/specs/editor/various/a11y.test.js @@ -23,7 +23,7 @@ describe( 'a11y', () => { ':focus', ( focusedElement ) => { return focusedElement.classList.contains( - 'editor-post-publish-button__button' + 'block-editor-inserter__toggle' ); } ); diff --git a/packages/edit-post/src/components/header/index.js b/packages/edit-post/src/components/header/index.js index bddd1014dac64..7410b3d30482d 100644 --- a/packages/edit-post/src/components/header/index.js +++ b/packages/edit-post/src/components/header/index.js @@ -58,6 +58,10 @@ function Header() { return (
+
+ + +
{ ! isPublishSidebarOpened && ( // This button isn't completely hidden by the publish sidebar. @@ -93,10 +97,6 @@ function Header() {
-
- - -
); } diff --git a/packages/edit-post/src/components/header/style.scss b/packages/edit-post/src/components/header/style.scss index b31a943b68eaa..b4977a3f6ae94 100644 --- a/packages/edit-post/src/components/header/style.scss +++ b/packages/edit-post/src/components/header/style.scss @@ -3,7 +3,6 @@ background: $white; display: flex; flex-wrap: wrap; - flex-direction: row-reverse; justify-content: space-between; align-items: center; // The header should never be wider than the viewport, or buttons might be hidden. Especially relevant at high zoom levels. Related to https://core.trac.wordpress.org/ticket/47603#ticket.