Skip to content

Commit

Permalink
Apply __next40pxDefaultSize to TextControl in renaming UIs
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 11, 2023
1 parent 5137da0 commit 8e3d374
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/block-rename/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default function BlockRenameModal( {
<VStack spacing="3">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
value={ editedBlockName }
label={ __( 'Block name' ) }
hideLabelFromVision={ true }
Expand Down
1 change: 1 addition & 0 deletions packages/block-editor/src/hooks/block-renaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function BlockRenameControlPure( { metadata, setAttributes } ) {
<InspectorControls group="advanced">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Block name' ) }
value={ metadata?.name || '' }
onChange={ ( newName ) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default function RenameMenuItem( { item, onClose } ) {
<VStack spacing="5">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Name' ) }
value={ title }
onChange={ setTitle }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function RenameModal( { menuTitle, onClose, onSave } ) {
<VStack spacing="3">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
value={ editedMenuTitle }
placeholder={ __( 'Navigation title' ) }
onChange={ setEditedMenuTitle }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default function RenameMenuItem( { template, onClose } ) {
<VStack spacing="5">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Name' ) }
value={ editedTitle }
onChange={ setEditedTitle }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default function RenamePatternCategoryModal( {
<TextControl
ref={ textControlRef }
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Name' ) }
value={ name }
onChange={ onChange }
Expand Down
1 change: 1 addition & 0 deletions packages/patterns/src/components/rename-pattern-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default function RenamePatternModal( {
<VStack spacing="5">
<TextControl
__nextHasNoMarginBottom
__next40pxDefaultSize
label={ __( 'Name' ) }
value={ name }
onChange={ setName }
Expand Down

0 comments on commit 8e3d374

Please sign in to comment.