From 671301fe0b488a2e9c0dc57b55af0e70b815c009 Mon Sep 17 00:00:00 2001 From: Jimmy Vo Date: Fri, 13 Feb 2026 10:03:46 -0500 Subject: [PATCH] [PM-30610] Undo shared components --- .../Mjml/components/mj-bw-hero.js | 8 ++--- .../Mjml/components/mj-bw-icon-row.js | 34 ++++++++++--------- .../components/mj-bw-learn-more-footer.js | 16 ++++----- 3 files changed, 27 insertions(+), 31 deletions(-) diff --git a/src/Core/MailTemplates/Mjml/components/mj-bw-hero.js b/src/Core/MailTemplates/Mjml/components/mj-bw-hero.js index a33646968b..c7a3b7e7ff 100644 --- a/src/Core/MailTemplates/Mjml/components/mj-bw-hero.js +++ b/src/Core/MailTemplates/Mjml/components/mj-bw-hero.js @@ -36,9 +36,8 @@ class MjBwHero extends BodyComponent { color="#1A41AC" border-radius="20px" align="left" - inner-padding="12px 24px" > - ${this.getAttribute("button-text")} + ${this.getAttribute("button-text")} ` : ""; const subTitleElement = this.getAttribute("sub-title") ? @@ -63,7 +62,7 @@ class MjBwHero extends BodyComponent { height="30px" > -

+

${this.getAttribute("title")}

` + @@ -78,8 +77,7 @@ class MjBwHero extends BodyComponent { src="${this.getAttribute("img-src")}" alt="" width="155px" - padding="0px 20px 0px 0px" - align="right" + padding="0px" css-class="mj-bw-hero-responsive-img" /> diff --git a/src/Core/MailTemplates/Mjml/components/mj-bw-icon-row.js b/src/Core/MailTemplates/Mjml/components/mj-bw-icon-row.js index 717f99c96a..d0ccde5513 100644 --- a/src/Core/MailTemplates/Mjml/components/mj-bw-icon-row.js +++ b/src/Core/MailTemplates/Mjml/components/mj-bw-icon-row.js @@ -1,7 +1,7 @@ const { BodyComponent } = require("mjml-core"); const BODY_TEXT_STYLES = ` - font-family="'Helvetica Neue', Helvetica, Arial, sans-serif" + font-family="Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="16px" font-weight="400" line-height="24px" @@ -30,17 +30,12 @@ class MjBwIconRow extends BodyComponent { return ` @media only screen and (max-width:${breakpoint}) { .mj-bw-icon-row-text { - padding-left: 15px !important; - padding-right: 15px !important; + padding-left: 5px !important; line-height: 20px; } - .mj-bw-icon-row-icon { - display: none !important; - width: 0 !important; - max-width: 0 !important; - } - .mj-bw-icon-row-text-column { - width: 100% !important; + .mj-bw-icon-row { + padding: 10px 15px; + width: fit-content !important; } } `; @@ -66,29 +61,36 @@ class MjBwIconRow extends BodyComponent { const footAnchorElement = this.getAttribute("foot-url-text") && this.getAttribute("foot-url") - ? ` + ? ` ${this.getAttribute("foot-url-text")} + + External Link Icon + ` : ""; return this.renderMJML( ` - + - + - + ${headAnchorElement} - + ${this.getAttribute("text")} ${footAnchorElement} diff --git a/src/Core/MailTemplates/Mjml/components/mj-bw-learn-more-footer.js b/src/Core/MailTemplates/Mjml/components/mj-bw-learn-more-footer.js index acecc6106a..fb8b5b69dd 100644 --- a/src/Core/MailTemplates/Mjml/components/mj-bw-learn-more-footer.js +++ b/src/Core/MailTemplates/Mjml/components/mj-bw-learn-more-footer.js @@ -25,25 +25,21 @@ class MjBwLearnMoreFooter extends BodyComponent { render() { return this.renderMJML( ` - + - -

+ +

Learn more about Bitwarden

-

- Find user guides, product documentation, and videos on the - Bitwarden Help Center. -

+ Find user guides, product documentation, and videos on the + Bitwarden Help Center.
- +