Skip to content

Commit

Permalink
Editor: Unify button size in pre-publish panel (WordPress#62123)
Browse files Browse the repository at this point in the history
* Editor: Unify button size in pre-publish panel

* Update snapshot

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
4 people authored May 30, 2024
1 parent df51a99 commit 4952a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/post-publish-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export class PostPublishPanel extends Component {
disabled={ isSavingNonPostEntityChanges }
onClick={ onClose }
variant="secondary"
size="compact"
>
{ __( 'Cancel' ) }
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ exports[`PostPublishPanel should render the pre-publish panel if post status is
class="editor-post-publish-panel__header-cancel-button"
>
<button
class="components-button is-secondary"
class="components-button is-secondary is-compact"
type="button"
>
Cancel
Expand Down Expand Up @@ -600,7 +600,7 @@ exports[`PostPublishPanel should render the pre-publish panel if the post is not
class="editor-post-publish-panel__header-cancel-button"
>
<button
class="components-button is-secondary"
class="components-button is-secondary is-compact"
type="button"
>
Cancel
Expand Down Expand Up @@ -797,7 +797,7 @@ exports[`PostPublishPanel should render the spinner if the post is being saved 1
class="editor-post-publish-panel__header-cancel-button"
>
<button
class="components-button is-secondary"
class="components-button is-secondary is-compact"
type="button"
>
Cancel
Expand Down

0 comments on commit 4952a52

Please sign in to comment.