From d516b2350df88ccdb4ad10e00608b13c6ff7c6d8 Mon Sep 17 00:00:00 2001 From: Eshaan Dabasiya <76681468+im3dabasia@users.noreply.github.com> Date: Fri, 24 Jan 2025 19:32:31 +0530 Subject: [PATCH] Components: Remove unnecessary `Tooltip` component from linked `button` (#68498) * fix: Removed extra tooltips component in button component * fix: label name * fix: Removed view component * doc: Update changelog for unreleased section * Add heading before new changelog entry --------- Co-authored-by: im3dabasia Co-authored-by: afercia Co-authored-by: ciampo --- .../spacing-sizes-control/linked-button.js | 18 +++++++-------- packages/components/CHANGELOG.md | 4 ++++ .../component.tsx | 23 ++++++++----------- .../src/box-control/linked-button.tsx | 19 +++++++-------- 4 files changed, 29 insertions(+), 35 deletions(-) diff --git a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js index f6d56be66072ad..413dc88a52e9b9 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js +++ b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { Button, Tooltip } from '@wordpress/components'; +import { Button } from '@wordpress/components'; import { link, linkOff } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; @@ -9,14 +9,12 @@ export default function LinkedButton( { isLinked, ...props } ) { const label = isLinked ? __( 'Unlink sides' ) : __( 'Link sides' ); return ( - -