Email templates redesign - #1784
Conversation
There was a problem hiding this comment.
Nice, great work so far! Thanks for tackling this issue.
I believe we still need to polish a bit on the UI details side comparing with the Zeplin mockups as there are some divergences:
[Host - Confirmation needed]
- Title font-weight is 700 vs 600 from the design
- Schedule title font-size is 16px vs 1.25 rem / 20px from the design
- Schedule title font-weight is 700 vs 600 from the design
- Schedule title margin-bottom is 8px vs 0.25 rem / 4px from the design
- Date/Time/Timezone font-weight is 700 vs normal from the design
- Date/Time/Timezone margin-bottom is 5px vs 0.25 rem / 4px from the design
- Time badge font-size is 9px vs 0.625 rem / 10px from the design
- "Meeting with" font-size is 11px & 13px vs 0.875 rem / 14px from the design
- "Meeting with" margin-bottom is 12px vs 1 rem / 16px from the design
- "Open in Thunderbird Appointment" font-size is 12px vs 0.813 / 13px from the design
- The
Decline / Confirmbuttons are flipped
[Footer]
- The gap / margin between the footer links and the footer blob ("Thunderbird is part...") seems wider than in the design. Can we confirm that?
- The footer links changed colours after a design revision in Zeplin
- The text MZLA Technologies Corporation should be a link to https://blog.thunderbird.net/2020/01/thunderbirds-new-home/
- It seems that the new design revision got rid of the
max-width: 328pxin the blob - The text in the badges of "confirmed" / "declined" / "cancelled" seem not centralized or with uneven vertical padding too
These notes are not 100% comprehensive as there are very similar divergences in the other layouts too so I'd suggest a UI pass on it just to make sure that it's aligned. Thanks!
|
@davinotdavid Thanks so much for your thorough review! I was already looking forward to it, it's much appreciated that you look at all the details! It seems the badges and other parts got a lot of changes in the designs since I first implemented it. I hope I caught everything. Let me know if there's still inconsistencies! |
davinotdavid
left a comment
There was a problem hiding this comment.
@devmount Thanks for the revision! We're close! There are a few things to update.
I didn't duplicate notes in between templates but some of them apply to all templates. For example, the confirmed / declined / pending badge spacing, the spacing in the footer, the line-height, etc.
[Host - Confirm / Decline Template]

Let me know if you have any questions!
|
@kewisch @davinotdavid Thanks both of you. Regarding text-underline-offset: This shouldn't be an issue if some platforms don't support it. Since we're using normal a tags, those would show underlined anyway, so this should be a graceful fallback for that specific case. |
|
I see some minor (though noticeable) issue with spacing:
For Thunderbird Desktop, maybe it is an issue with attachment types or remote images? I'm not sure how compatible it would be, but potentially you could use a data url. I find displaying images across clients is most tricky. check-circle-error also looks a bit smaller than the others. Do reach out to design in case you need updated graphics. |
|
@kewisch Thanks so much for your suggestions! Replacing the inline images with data URLs is a great call IMHO, since this reduces unnecessary attachment bloat. What I did now:
@davinotdavid Could you test this again with the different email providers? I don't have the possibility to test with Apple mail atm. |
|
@devmount @kewisch Hmm now we have some reversed behavior between TB Desktop <-> Gmail. It seems that Gmail strictly blocks embedded images for security reasons. Here are some screenshots: Thundermail's Webmail:
-- TB Desktop (now show images!):
-- Apple Mail (1px ish misalignment of the "pending" text within the badge): -- Gmail (doesn't show images anymore):
|
|
@davinotdavid Ah dang, looking great on Thundermail and TB Desktop now, but not on gmail 😅 What do we do? I can investigate gmail inline images, maybe I can find something |
|
@devmount there's quite a few people with the same problem online that have approached this with different techniques and varying results but it seems that people either:
We didn't seem to have this problem in the previous templates though |
|
@davinotdavid In the previous templates we used CID, that's why they were working. We can always revert back to it. But we could try the CSS background (seems like a low-effort workaround to test) first? |
|
@devmount sure yeah, try them out! |
|
@davinotdavid Alright will do. And thanks so much for testing again and again, Davi! The helps a lot! |
|
@davinotdavid I tried with background-image now. Would be awesome if you could test again 🙏🏻 When it's not working, happy to revert back. |
|
@devmount just tested, not fixed unfortunately. Now it doesn't show the images nor the alt text for them:
All the other clients are the same / load correctly. Since Gmail is so prevalent, we should probably fix this somehow. I don't know how to fix this from the top of my head so it requires a bit of research on what is best. |
|
@davinotdavid Thank you. I'll investigate some more for the gmail images display issues before reverting. I'll report back. |
|
@davinotdavid After some digging, I think we have the following options:
Ruled out:
|
|
If CID images are what others are using and ours is the only one that is not then that seems like the most viable path. Maybe we can get some help from the Desktop team as to why they are not displayed. Possibly has to do with the order of mime multiparts? |
|
@kewisch @davinotdavid Found it! It was a 2 line fix, but that bug was a nasty one 😅 We were accessing the message payload at index 1 within the for loop, but the contents at that index changed because we called So it was our fault (that bug was there for since we first implemented the emails, but it never occured to us until we added further attachments with the icons). Interesting though that the other email platforms were somehow able to still map the attachments to the correct files. |
|
@devmount can confirm that images works well in TB Desktop, Thundermail Webmail, Gmail and Apple Mail! Thanks for the fix 🎉 I hope you don't mind but I've noticed some small inconsistencies around vertical alignment and spacing which got me into a rabbit hole 😅 Seems like flex / grid has some issues where some properties gets stripped out in some clients (for example Gmail was keeping the Here's all updated screenshots which IMHO is perhaps as good as it gets. There's a 1px vertical misalignment in Apple Mail on the badge text which is bothering me but I've spent too much time chasing this 1px while not breaking the rest which makes me think that it is fine. |
Of course I don't! Thanks so much for further improving this and also testing on every platform 👍🏻 This is so helpful. Looking great now! I think this PR is finally ready to be merged, or is there something else still open? |























What changed?
This change implements changes to all email templates after the redesign:
Why?
Consistency and a common design language not only on application level, but also for external communication.
How to test
Basically triggering every email type from the 5 above and compare to the designs.
Limitations and Notes
Applicable Issues
Closes #1378
Screenshots
As an example here the booking confirmation mail to the subscriber (Desktop and mobile):
Before:
After