Skip to content

Commit

Permalink
Restore Style book close button tooltip. (WordPress#60177)
Browse files Browse the repository at this point in the history
Co-authored-by: afercia <afercia@git.wordpress.org>
Co-authored-by: alexstine <alexstine@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
4 people authored and cbravobernal committed Apr 9, 2024
1 parent 9f455d9 commit 9c88c81
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ function EditorCanvasContainer( {
icon={ closeSmall }
label={ closeButtonLabel || __( 'Close' ) }
onClick={ onCloseContainer }
showTooltip={ false }
/>
) }
{ childrenWithProps }
Expand Down
4 changes: 1 addition & 3 deletions packages/edit-site/src/components/style-book/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ function StyleBook( {
<EditorCanvasContainer
onClose={ onClose }
enableResizing={ enableResizing }
closeButtonLabel={
showCloseButton ? __( 'Close Style Book' ) : null
}
closeButtonLabel={ showCloseButton ? __( 'Close' ) : null }
>
<div
className={ classnames( 'edit-site-style-book', {
Expand Down
4 changes: 1 addition & 3 deletions test/e2e/specs/site-editor/style-book.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ test.describe( 'Style Book', () => {
} );

// Close Style Book via click event.
await styleBookRegion
.getByRole( 'button', { name: 'Close Style Book' } )
.click();
await styleBookRegion.getByRole( 'button', { name: 'Close' } ).click();

await expect(
styleBookRegion,
Expand Down

0 comments on commit 9c88c81

Please sign in to comment.