Skip to content

Commit

Permalink
update design by using InputControl
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Nov 6, 2023
1 parent 78e28e2 commit f2089ab
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { useState, useMemo } from '@wordpress/element';
import { __experimentalInspectorPopoverHeader as InspectorPopoverHeader } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import {
TextControl,
__experimentalInputControl as InputControl,
__experimentalInputControlPrefixWrapper as InputControlPrefixWrapper,
__experimentalHStack as HStack,
__experimentalVStack as VStack,
__experimentalText as Text,
Expand Down Expand Up @@ -108,10 +109,16 @@ export default function PageSlug( { postType, postId } ) {
onClose={ onClose }
/>
<VStack spacing={ 5 }>
<TextControl
<InputControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Permalink' ) }
hideLabelFromVision
prefix={
<InputControlPrefixWrapper>
/
</InputControlPrefixWrapper>
}
value={ forceEmptyField ? '' : recordSlug }
autoComplete="off"
spellCheck="false"
Expand Down

0 comments on commit f2089ab

Please sign in to comment.