Skip to content

Commit

Permalink
Tweak save hub button (#58917)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Feb 12, 2024
1 parent 3495168 commit 2325d22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export default function HeaderEditMode() {
</div>
) }
<PostViewLink />
<SaveButton />
<SaveButton size="compact" />
{ ! isDistractionFree && (
<PinnedItems.Slot scope="core/edit-site" />
) }
Expand Down
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/save-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function SaveButton( {
showTooltip = true,
defaultLabel,
icon,
size,
__next40pxDefaultSize = false,
} ) {
const { isDirty, isSaving, isSaveViewOpen, previewingThemeName } =
Expand Down Expand Up @@ -119,7 +120,7 @@ export default function SaveButton( {
showTooltip={ showTooltip }
icon={ icon }
__next40pxDefaultSize={ __next40pxDefaultSize }
size="compact"
size={ size }
>
{ label }
</Button>
Expand Down
7 changes: 5 additions & 2 deletions packages/edit-site/src/components/save-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2325d22

Please sign in to comment.