Skip to content

Commit

Permalink
Editor Canvas: Tweal close button (#65694)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: ramonjd <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2024
1 parent 3155ab7 commit cc0b3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function EditorCanvasContainer( {
>
{ shouldShowCloseButton && (
<Button
__next40pxDefaultSize
size="compact"
className="edit-site-editor-canvas-container__close-button"
icon={ closeSmall }
label={ closeButtonLabel || __( 'Close' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.edit-site-editor-canvas-container__close-button {
position: absolute;
right: $grid-unit-10;
top: math.div($grid-unit-60 - $button-size, 2); // ( tab height - button size ) / 2
top: $grid-unit-10;
z-index: 1;
background: $white;
}

1 comment on commit cc0b3d3

@github-actions
Copy link

Choose a reason for hiding this comment

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

Flaky tests detected in cc0b3d3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11071182209
📝 Reported issues:

Please sign in to comment.