diff --git a/packages/dataviews/src/dataforms-layouts/panel/index.tsx b/packages/dataviews/src/dataforms-layouts/panel/index.tsx index 20854209096884..0b616d049bde7d 100644 --- a/packages/dataviews/src/dataforms-layouts/panel/index.tsx +++ b/packages/dataviews/src/dataforms-layouts/panel/index.tsx @@ -8,7 +8,6 @@ import { __experimentalSpacer as Spacer, Dropdown, Button, - BaseControl, } from '@wordpress/components'; import { sprintf, __, _x } from '@wordpress/i18n'; import { useState, useMemo, useContext } from '@wordpress/element'; @@ -200,9 +199,14 @@ export default function FormPanelField< Item >( { if ( labelPosition === 'top' ) { return ( - - { fieldLabel } -
+ +
+ { fieldLabel } +
+
( { labelPosition={ labelPosition } />
- +
); } if ( labelPosition === 'none' ) { return ( - +
+ +
); } @@ -240,7 +246,7 @@ export default function FormPanelField< Item >( {
{ fieldLabel }
-
+