diff --git a/packages/fields/src/components/create-template-part-modal/index.tsx b/packages/fields/src/components/create-template-part-modal/index.tsx index 40fdb9f2166964..579e8eef3eeda7 100644 --- a/packages/fields/src/components/create-template-part-modal/index.tsx +++ b/packages/fields/src/components/create-template-part-modal/index.tsx @@ -5,13 +5,8 @@ import { Icon, BaseControl, TextControl, - Flex, - FlexItem, - FlexBlock, Button, Modal, - __experimentalRadioGroup as RadioGroup, - __experimentalRadio as Radio, __experimentalHStack as HStack, __experimentalVStack as VStack, } from '@wordpress/components'; @@ -202,51 +197,56 @@ export function CreateTemplatePartModalContents( { onChange={ setTitle } required /> - - - value && typeof value === 'string' - ? setArea( value ) - : () => void 0 - } - checked={ area } +
+ + { __( 'Area' ) } + +
{ defaultTemplatePartAreas.map( ( { icon, label, area: value, description } ) => ( - - - - - - - { label } -
{ description }
-
- - - { area === value && ( - - ) } - -
-
+ { + setArea( value ); + } } + aria-describedby={ `fields-create-template-part-modal__area-option-description-${ value }` } + /> + + + +

+ { description } +

+
) ) } - - + +