From 2325d227142624723461f0b8410da1239eb8c6a7 Mon Sep 17 00:00:00 2001
From: Aki Hamano <54422211+t-hamano@users.noreply.github.com>
Date: Mon, 12 Feb 2024 13:22:50 +0900
Subject: [PATCH] Tweak save hub button (#58917)
---
.../edit-site/src/components/header-edit-mode/index.js | 2 +-
packages/edit-site/src/components/save-button/index.js | 3 ++-
packages/edit-site/src/components/save-hub/style.scss | 7 +++++--
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/packages/edit-site/src/components/header-edit-mode/index.js b/packages/edit-site/src/components/header-edit-mode/index.js
index 773edf469143b..5b8b44f63efe7 100644
--- a/packages/edit-site/src/components/header-edit-mode/index.js
+++ b/packages/edit-site/src/components/header-edit-mode/index.js
@@ -206,7 +206,7 @@ export default function HeaderEditMode() {
) }
-
+
{ ! isDistractionFree && (
) }
diff --git a/packages/edit-site/src/components/save-button/index.js b/packages/edit-site/src/components/save-button/index.js
index 461264bd5a563..7ad809f123124 100644
--- a/packages/edit-site/src/components/save-button/index.js
+++ b/packages/edit-site/src/components/save-button/index.js
@@ -22,6 +22,7 @@ export default function SaveButton( {
showTooltip = true,
defaultLabel,
icon,
+ size,
__next40pxDefaultSize = false,
} ) {
const { isDirty, isSaving, isSaveViewOpen, previewingThemeName } =
@@ -119,7 +120,7 @@ export default function SaveButton( {
showTooltip={ showTooltip }
icon={ icon }
__next40pxDefaultSize={ __next40pxDefaultSize }
- size="compact"
+ size={ size }
>
{ label }
diff --git a/packages/edit-site/src/components/save-hub/style.scss b/packages/edit-site/src/components/save-hub/style.scss
index 5cb7cca1f8501..4562cf2ad4654 100644
--- a/packages/edit-site/src/components/save-hub/style.scss
+++ b/packages/edit-site/src/components/save-hub/style.scss
@@ -3,13 +3,16 @@
border-top: 1px solid $gray-800;
flex-shrink: 0;
margin: 0;
- padding: $grid-unit-20 + $grid-unit-05 $canvas-padding;
+ padding: $grid-unit-20 $canvas-padding;
}
.edit-site-save-hub__button {
color: inherit;
width: 100%;
- justify-content: center;
+
+ &.components-button.components-button {
+ justify-content: center;
+ }
&[aria-disabled="true"] {
opacity: 1;