Skip to content

Commit

Permalink
Editor topbar: reorder the actions on the right (#65163)
Browse files Browse the repository at this point in the history
* Editor - move publish button to penultimate position

* Widgets - Move Save button to penultimate position

* Reorder global styles/settings pinned items
  • Loading branch information
talldan authored Sep 9, 2024
1 parent a89c8bd commit 312fa6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/edit-widgets/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function Header() {
) }
</div>
<div className="edit-widgets-header__actions">
<SaveButton />
<PinnedItems.Slot scope="core/edit-widgets" />
<SaveButton />
<MoreMenu />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function Editor( {
<EditorInterface { ...props }>
{ extraContent }
</EditorInterface>
{ children }
<Sidebar
onActionPerformed={ onActionPerformed }
extraPanels={ extraSidebarPanels }
/>
{ children }
</ExperimentalEditorProvider>
) }
</>
Expand Down
6 changes: 3 additions & 3 deletions packages/editor/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function Header( {
forceIsAutosaveable={ forceIsDirty }
/>
<PostViewLink />
{ ( isWideViewport || ! showIconLabels ) && (
<PinnedItems.Slot scope="core" />
) }
{ ! customSaveButton && (
<PostPublishButtonOrToggle
forceIsDirty={ forceIsDirty }
Expand All @@ -151,9 +154,6 @@ function Header( {
/>
) }
{ customSaveButton }
{ ( isWideViewport || ! showIconLabels ) && (
<PinnedItems.Slot scope="core" />
) }
<MoreMenu />
</motion.div>
</div>
Expand Down

0 comments on commit 312fa6e

Please sign in to comment.