Skip to content

Commit

Permalink
Revert/top toolbar tab order (#20571)
Browse files Browse the repository at this point in the history
* Revert "Fix e2e tests"

This reverts commit b7fc515.

* Revert "Top toolbar: adjust tab order"

This reverts commit a6bfb67.
  • Loading branch information
ellatrix authored Mar 2, 2020
1 parent 7866ae1 commit 79a8016
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/various/a11y.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe( 'a11y', () => {
':focus',
( focusedElement ) => {
return focusedElement.classList.contains(
'editor-post-publish-button__button'
'block-editor-inserter__toggle'
);
}
);
Expand Down
8 changes: 4 additions & 4 deletions packages/edit-post/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ function Header() {

return (
<div className="edit-post-header">
<div className="edit-post-header__toolbar">
<FullscreenModeClose />
<HeaderToolbar />
</div>
<div className="edit-post-header__settings">
{ ! isPublishSidebarOpened && (
// This button isn't completely hidden by the publish sidebar.
Expand Down Expand Up @@ -93,10 +97,6 @@ function Header() {
<PinnedPlugins.Slot />
<MoreMenu />
</div>
<div className="edit-post-header__toolbar">
<FullscreenModeClose />
<HeaderToolbar />
</div>
</div>
);
}
Expand Down
1 change: 0 additions & 1 deletion packages/edit-post/src/components/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 79a8016

Please sign in to comment.