From 398722f9cd255ee18beeec6239a057c8fa11250f Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Wed, 23 Aug 2023 15:22:07 -0700 Subject: [PATCH] refactor: update styles --- .../components/send-preview-email.tsx | 6 +- .../settings/email/template-options/index.tsx | 18 +- .../email/template-options/settings.tsx | 25 +- .../src/styles/_email-settings.scss | 267 ++++++++++-------- 4 files changed, 173 insertions(+), 143 deletions(-) diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/components/send-preview-email.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/components/send-preview-email.tsx index 1329141d01..c4afba96f1 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/components/send-preview-email.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/components/send-preview-email.tsx @@ -44,12 +44,12 @@ export default ({emailType, defaultEmailAddress}) => { return ( <> -

{__('Send a test email', 'givewp')}

-

+

{__('Send a test email', 'givewp')}

+

{__('Specify below the email address you want to send a test email to', 'givewp')}

{defaultEmailAddress !== null && } - diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/index.tsx index ca09a88fa6..924be7a9f0 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/index.tsx @@ -73,7 +73,7 @@ export default () => { {!showPreview && ( <>
-
+
{ > {(tab) => (
{ : '0 20px', // Adjust for scrollbar }} > -

{__('Notification')}

+

{__('Notification')}

{
-

{__('Preview email', 'givewp')}

-

+

{__('Preview email', 'givewp')}

+

{__('Preview the email message in your browser', 'givewp')}

-

{__('Template tags', 'givewp')}

-

+

{__('Template tags', 'givewp')}

+

{__( 'Available template tags for this email. HTML is accepted. See our documentation for examples of how to use custom meta email tags to output additional donor or donation information in your GiveWP emails', 'givewp' diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/settings.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/settings.tsx index dd70ded89a..e3d4249307 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/settings.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/email/template-options/settings.tsx @@ -112,21 +112,17 @@ const EmailTemplateSettings = ({notification, closeModal}) => { }; return ( -

-
+
+