From 5ebc25048e6f18ed0b4f963b411ec7c50104c29c Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Tue, 14 Jan 2025 15:47:04 +0200 Subject: [PATCH] Revert "Revert "Forms: rename "URL" field to "Website" (#40994)" (#41026)" (#41029) This reverts commit 692d991780d6c5d29cd436715d0248cd015281f9. --- .../changelog/update-forms-url-field-rename | 4 +++ .../src/blocks/contact-form/child-blocks.js | 25 ++++++++----------- 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 projects/packages/forms/changelog/update-forms-url-field-rename diff --git a/projects/packages/forms/changelog/update-forms-url-field-rename b/projects/packages/forms/changelog/update-forms-url-field-rename new file mode 100644 index 0000000000000..8e08ef96503e5 --- /dev/null +++ b/projects/packages/forms/changelog/update-forms-url-field-rename @@ -0,0 +1,4 @@ +Significance: minor +Type: changed + +Forms: rename "URL" field to "Website" diff --git a/projects/packages/forms/src/blocks/contact-form/child-blocks.js b/projects/packages/forms/src/blocks/contact-form/child-blocks.js index 151ec195ce1b1..f84d3fd52e58f 100644 --- a/projects/packages/forms/src/blocks/contact-form/child-blocks.js +++ b/projects/packages/forms/src/blocks/contact-form/child-blocks.js @@ -1,7 +1,7 @@ import { createBlock } from '@wordpress/blocks'; -import { Path } from '@wordpress/components'; -import { Fragment } from '@wordpress/element'; +import { Path, Icon } from '@wordpress/components'; import { __, _x } from '@wordpress/i18n'; +import { globe } from '@wordpress/icons'; import { filter, isEmpty, map, startsWith, trim } from 'lodash'; import JetpackField from './components/jetpack-field'; import JetpackFieldCheckbox from './components/jetpack-field-checkbox'; @@ -409,7 +409,7 @@ export const childBlocks = [ name: 'field-url', settings: { ...FieldDefaults, - title: __( 'URL Field', 'jetpack-forms' ), + title: __( 'Website Field', 'jetpack-forms' ), keywords: [ __( 'url', 'jetpack-forms' ), __( 'internet page', 'jetpack-forms' ), @@ -417,18 +417,13 @@ export const childBlocks = [ __( 'website', 'jetpack-forms' ), ], description: __( 'Collect a website address from your site visitors.', 'jetpack-forms' ), - icon: renderMaterialIcon( - <> - - - - + icon: ( + ), edit: editField( 'url' ), attributes: {