Skip to content

Commit

Permalink
Editor Canvas: Tweal close button (WordPress#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;
}

0 comments on commit cc0b3d3

Please sign in to comment.