Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Surrey] Included email footer #5357

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lucascumsille
Copy link
Contributor

@lucascumsille lucascumsille commented Feb 6, 2025

Fixes: https://docs.google.com/document/d/1aDj4ulmCtbmR4oe8TLhfpg2wbLhIHAc_daiYRp-HZcM/edit?tab=t.0#heading=h.ecre3niclkkv

I added a light border to the banner, so the gray background and the green banner is less jarring.

Preview:
Screenshot 2025-02-06 at 08 10 48

Screenshot 2025-02-06 at 08 13 55

Footer with a banner to subscribe to Surrey's newsletter
@lucascumsille lucascumsille requested a review from davea February 6, 2025 08:14
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.41%. Comparing base (61e7964) to head (103ea65).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5357      +/-   ##
==========================================
- Coverage   82.42%   82.41%   -0.01%     
==========================================
  Files         416      416              
  Lines       32925    32925              
  Branches     5289     5289              
==========================================
- Hits        27138    27136       -2     
- Misses       4225     4226       +1     
- Partials     1562     1563       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@davea davea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Border looks great! Just one tiny change for the image is all that's required.

<tr>
<th class="spacer-cell"></th>
<th width="[% wrapper_max_width %]" style="[% td_style %][% hint_style %][% banner_style %]">
<img src="/cobrands/surrey/images/email.png" alt="" role="presentation" aria-hidden="true" width="24px" height="24px" style="[% banner_image_style %]">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs wrapping in inline_image otherwise it doesn't appear in the email client:

Suggested change
<img src="/cobrands/surrey/images/email.png" alt="" role="presentation" aria-hidden="true" width="24px" height="24px" style="[% banner_image_style %]">
<img src="[% inline_image('web/cobrands/surrey/images/email.png') %]" alt="" role="presentation" aria-hidden="true" width="24px" height="24px" style="[% banner_image_style %]">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants