From 793521f74efce3a32933a3cffa6e0b40df81297b Mon Sep 17 00:00:00 2001 From: Vipul Gupta Date: Mon, 30 Sep 2024 13:08:49 +0530 Subject: [PATCH] feat: Removes the size control from block controls. --- .../block-library/src/social-links/edit.js | 46 ------------------- 1 file changed, 46 deletions(-) diff --git a/packages/block-library/src/social-links/edit.js b/packages/block-library/src/social-links/edit.js index 2bbcc4f614e2f..e613200348a59 100644 --- a/packages/block-library/src/social-links/edit.js +++ b/packages/block-library/src/social-links/edit.js @@ -8,7 +8,6 @@ import clsx from 'clsx'; */ import { useEffect, useRef } from '@wordpress/element'; import { - BlockControls, useInnerBlocksProps, useBlockProps, InspectorControls, @@ -20,16 +19,12 @@ import { store as blockEditorStore, } from '@wordpress/block-editor'; import { - MenuGroup, - MenuItem, PanelBody, ToggleControl, - ToolbarDropdownMenu, __experimentalToggleGroupControl as ToggleGroupControl, __experimentalToggleGroupControlOption as ToggleGroupControlOption, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; -import { check } from '@wordpress/icons'; import { useSelect } from '@wordpress/data'; const sizeOptions = [ @@ -119,10 +114,6 @@ export function SocialLinksEdit( props ) { renderAppender: hasAnySelected && InnerBlocks.ButtonBlockAppender, } ); - const POPOVER_PROPS = { - position: 'bottom right', - }; - const colorSettings = [ { // Use custom attribute as fallback to prevent loss of named color selection when @@ -163,43 +154,6 @@ export function SocialLinksEdit( props ) { return ( <> - - - { ( { onClose } ) => ( - - { sizeOptions.map( ( entry ) => { - return ( - { - setAttributes( { - size: entry.value, - } ); - } } - onClose={ onClose } - role="menuitemradio" - > - { entry.name } - - ); - } ) } - - ) } - -