Skip to content

Commit

Permalink
Patterns: Align height of save button and patterns pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jul 19, 2023
1 parent 9a28565 commit 87d1ccd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/save-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function SaveButton( {
showTooltip = true,
defaultLabel,
icon,
__next40pxDefaultSize = false,
} ) {
const { isDirty, isSaving, isSaveViewOpen } = useSelect( ( select ) => {
const { __experimentalGetDirtyEntityRecords, isSavingEntityRecord } =
Expand Down Expand Up @@ -83,6 +84,7 @@ export default function SaveButton( {
*/
showTooltip={ showTooltip }
icon={ icon }
__next40pxDefaultSize={ __next40pxDefaultSize }
>
{ label }
</Button>
Expand Down
2 changes: 2 additions & 0 deletions packages/edit-site/src/components/save-hub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default function SaveHub() {
disabled={ isSaving }
aria-disabled={ isSaving }
className="edit-site-save-hub__button"
__next40pxDefaultSize
>
{ label }
</Button>
Expand All @@ -158,6 +159,7 @@ export default function SaveHub() {
showTooltip={ false }
icon={ disabled && ! isSaving ? check : null }
defaultLabel={ label }
__next40pxDefaultSize
/>
) }
</HStack>
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/save-hub/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
border-top: 1px solid $gray-800;
flex-shrink: 0;
margin: 0;
padding: $canvas-padding;
padding: $grid-unit-20 + $grid-unit-05 $canvas-padding;
}

.edit-site-save-hub__button {
Expand Down

0 comments on commit 87d1ccd

Please sign in to comment.