Skip to content

Commit

Permalink
Newsletter settings: update form labels for welcome message (#40254)
Browse files Browse the repository at this point in the history
  • Loading branch information
simison authored Nov 20, 2024
1 parent 3def19d commit d83138e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { __ } from '@wordpress/i18n';
import { FormLabel } from 'components/forms';
import { withModuleSettingsFormHelpers } from 'components/module-settings/with-module-settings-form-helpers';
import SettingsCard from 'components/settings-card';
import SettingsGroup from 'components/settings-group';
Expand Down Expand Up @@ -41,7 +40,7 @@ const MessagesSetting = props => {
return (
<SettingsCard
{ ...props }
header={ __( 'Messages', 'jetpack' ) }
header={ __( 'Welcome email message', 'jetpack' ) }
feature={ FEATURE_NEWSLETTER_JETPACK }
module={ SUBSCRIPTIONS_MODULE_NAME }
saveDisabled={ isSaving }
Expand All @@ -55,21 +54,17 @@ const MessagesSetting = props => {
>
<p className="jp-settings-card__email-settings">
{ __(
'These settings change the emails sent from your site to your readers.',
'Sent to your email subscribers when they subscribe to your newsletter.',
'jetpack'
) }
</p>
<FormLabel>
<span className="jp-form-label-wide email-settings__title">
{ __( 'Welcome email message', 'jetpack' ) }
</span>
<Textarea
disabled={ disabled }
name={ SUBSCRIPTION_OPTIONS }
value={ welcomeMessage }
onChange={ changeWelcomeMessageState }
/>
</FormLabel>
<Textarea
ariaLabel={ __( 'Welcome email message', 'jetpack' ) }
disabled={ disabled }
name={ SUBSCRIPTION_OPTIONS }
value={ welcomeMessage }
onChange={ changeWelcomeMessageState }
/>
<p className="jp-form-setting-explanation">
{ __(
'You can use plain text or HTML tags in this textarea for formatting.',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Newsletter settings: update form labels for welcome message

0 comments on commit d83138e

Please sign in to comment.