From 3fb0ab56d7a04c11bba1d2f1c0148e289c49c74d Mon Sep 17 00:00:00 2001 From: Randi Mays <19175324+randimays@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:32:04 -0600 Subject: [PATCH] VACMS-19516 Add container and toggle for Email Signup React widget (#2342) * VACMS-19516 Add container and toggle for Email Signup React widget * Adjust to not include the veteran banner in the toggle * Removing test code * Remove line break --- src/site/assets/sass/style.scss | 7 ++ src/site/filters/liquid.js | 4 + .../email-update-signup.drupal.liquid | 112 +++++++++--------- 3 files changed, 68 insertions(+), 55 deletions(-) diff --git a/src/site/assets/sass/style.scss b/src/site/assets/sass/style.scss index 97093a4668..fe5771a825 100644 --- a/src/site/assets/sass/style.scss +++ b/src/site/assets/sass/style.scss @@ -80,6 +80,13 @@ } } +.homepage-email-update-wrapper { + .veteran-banner-container { + max-width: 80rem; + margin: 0 auto; + } +} + // START: Styles for mobile app promo banner #alert-with-additional-info { diff --git a/src/site/filters/liquid.js b/src/site/filters/liquid.js index 205a3ed647..c4c5771a32 100644 --- a/src/site/filters/liquid.js +++ b/src/site/filters/liquid.js @@ -2241,4 +2241,8 @@ module.exports = function registerFilters() { } return null; }; + + liquid.filters.showExistingEmailForm = () => { + return cmsFeatureFlags.FEATURE_EMAIL_UPDATE_WIDGET; + }; }; diff --git a/src/site/includes/email-update-signup.drupal.liquid b/src/site/includes/email-update-signup.drupal.liquid index ed308d0b75..2c31ec7d9f 100644 --- a/src/site/includes/email-update-signup.drupal.liquid +++ b/src/site/includes/email-update-signup.drupal.liquid @@ -1,59 +1,61 @@ -
-
-
-
-
-
- - - - - -
-
-
+
+
+
+ {% assign shouldShowExistingEmailForm = '' | showExistingEmailForm %} + + {% if shouldShowExistingEmailForm %} +
+ + + + + +
+ {% else %} +
+ {% endif %}
-
-
- - - - Veteran portraits - -
+
+
+
+ + + + Veteran portraits +