Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix editor canvas close button to use 40px default button size
  • Loading branch information
hbhalodia committed Sep 11, 2024
commit 8408756fb68ccd2970f98475ff22e7d98ccf4c4f
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ function EditorCanvasContainer( {
>
{ shouldShowCloseButton && (
<Button
// TODO: Switch to `true` (40px size) if possible
__next40pxDefaultSize={ false }
__next40pxDefaultSize
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be seen when you go to site editor --> styles --> revisions, there is close button.

Before After
editor-canvas-close-before Editor-anvas-close-after

className="edit-site-editor-canvas-container__close-button"
icon={ closeSmall }
label={ closeButtonLabel || __( 'Close' ) }
Expand Down