diff --git a/packages/block-library/src/paragraph/edit.js b/packages/block-library/src/paragraph/edit.js index e88bfc3c72117..c6a2988a3d064 100644 --- a/packages/block-library/src/paragraph/edit.js +++ b/packages/block-library/src/paragraph/edit.js @@ -9,8 +9,8 @@ import classnames from 'classnames'; import { __, _x, isRTL } from '@wordpress/i18n'; import { ToolbarDropdownMenu, - PanelBody, ToggleControl, + __experimentalToolsPanelItem as ToolsPanelItem, } from '@wordpress/components'; import { AlignmentControl, @@ -81,8 +81,16 @@ function ParagraphBlock( { /> { isDropCapFeatureEnabled && ( - - + + !! dropCap } + label={ __( 'Drop cap' ) } + onDeselect={ () => + setAttributes( { dropCap: undefined } ) + } + resetAllFilter={ () => ( { dropCap: undefined } ) } + panelId={ clientId } + > - + ) }