forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary Tooltip component from radius control linked button (
WordPress#66274) Co-authored-by: afercia <[email protected]> Co-authored-by: ciampo <[email protected]>
- Loading branch information
1 parent
b071c75
commit c255a12
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
20 changes: 9 additions & 11 deletions
20
packages/block-editor/src/components/border-radius-control/linked-button.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Button, Tooltip } from '@wordpress/components'; | ||
import { Button } from '@wordpress/components'; | ||
import { link, linkOff } from '@wordpress/icons'; | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
export default function LinkedButton( { isLinked, ...props } ) { | ||
const label = isLinked ? __( 'Unlink radii' ) : __( 'Link radii' ); | ||
|
||
return ( | ||
<Tooltip text={ label }> | ||
<Button | ||
{ ...props } | ||
className="component-border-radius-control__linked-button" | ||
size="small" | ||
icon={ isLinked ? link : linkOff } | ||
iconSize={ 24 } | ||
aria-label={ label } | ||
/> | ||
</Tooltip> | ||
<Button | ||
{ ...props } | ||
className="component-border-radius-control__linked-button" | ||
size="small" | ||
icon={ isLinked ? link : linkOff } | ||
iconSize={ 24 } | ||
label={ label } | ||
/> | ||
); | ||
} |