Page MenuHomePhabricator

Improve CSS styling for verification email
Open, HighPublic3 Estimated Story Points

Assigned To
Authored By
Urbanecm_WMF
Tue, Dec 2, 5:01 PM
Referenced Files
F70947077: image.png
Mon, Dec 8, 9:39 PM
F70946923: IMG_9924.jpg
Mon, Dec 8, 9:38 PM
F70946811: Screenshot 2025-12-08 at 4.15.27 PM.png
Mon, Dec 8, 9:22 PM
F70946602: IMG_7592.PNG
Mon, Dec 8, 9:22 PM
F70946446: Screenshot 2025-12-08 at 3.36.21 PM.png
Mon, Dec 8, 9:22 PM
F70942365: image.png
Mon, Dec 8, 4:33 PM
F70942360: image.png
Mon, Dec 8, 4:33 PM
F70942318: image.png
Mon, Dec 8, 4:29 PM

Description

@AAlhazwani-WMF tested the work by @Urbanecm_WMF in T396155: Improve verification email and noticed several issues:

did some testing with apple mail app (with an icloud account) and gmail app (with a google account) and there are some issues that i'd like to address prior to releasing this.
on gmail, it doesn't render the link as a button, and there are some broken images (might be related to testwiki only)

{F70822143}{F70822145}

generally speaking the email has not been styled as desired, and spec-ed out on figma (on the left screenshot on testwiki, on the right desired result)

{F70822153}{F70822156}

while it looks ok-ish on apple mail mobile, it looks very tiny on apple mail desktop.

{F70822161}{F70822163}

There are some discrepancy in displaying the email format summarized below:
The following logo is not displayed in gmail desktop:

<img src="https://ci3.googleusercontent.com/meips/ADKq_NYW3pmzSU2w2w2iIkRCjL7X25d0L3RpYLPcphbyCQfqf99ovVnwB3koWdllGrq_ahyT_Zpu4mVfM8r1k5pRavAwu_nqy8gf14foyIbCg91aStKBTs0X1QPg7KVDb9Ht92021192HfTnwg=s0-d-e1-ft#https://auth.wikimedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg" alt="Wikipedia logo" class="CToWUd" data-bit="iit" jslog="138226; u014N:xr6bB; 53:WzAsMl0.">
gmail Desktop; "Always display external images" option is ongmail Mobile
Screenshot 2025-12-02 at 10.12.00 AM.png (1×1 px, 207 KB)
(1) the logo is not displayed (2) the link is not rendered as a button
IMG_7589.jpg (1×828 px, 327 KB)
(1) the two logos are placed too tight (2) the link is not rendered as a button

Other email client (mail.com) displays the oversized logo, e.g.

Screenshot 2025-12-02 at 10.49.36 AM.png (970×2 px, 191 KB)

Event Timeline

Urbanecm_WMF added a subscriber: Michael.

Assigning to @Michael based on our 1:1 conversation.

Urbanecm_WMF moved this task from Inbox to Up Next (estimated tasks) on the Growth-Team board.
Urbanecm_WMF set the point value for this task to 3.

Change #1215192 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/core@master] Adjust styling of confirmation emails

https://gerrit.wikimedia.org/r/1215192

Change #1215192 merged by jenkins-bot:

[mediawiki/core@master] Adjust styling of confirmation emails

https://gerrit.wikimedia.org/r/1215192

I tested this on enwiki beta with Gmail:

image.png (808×1 px, 86 KB)

It seems like we're still having issues with the logo for some reason. On a non-Gmail address, it looks correct, but the button and background is not there:

image.png (630×1 px, 152 KB)

I also tested with an Office365-based account, where it seems to work as expected:

image.png (1×3 px, 246 KB)

With dark mode on (integrated in MS Outlook's default client), the logo is not legible, but I'm not sure we can really do something about that:

image.png (1×3 px, 288 KB)

Change #1216621 had a related patch set uploaded (by Urbanecm; author: Michael Große):

[mediawiki/core@wmf/1.46.0-wmf.5] Adjust styling of confirmation emails

https://gerrit.wikimedia.org/r/1216621

Change #1216621 merged by jenkins-bot:

[mediawiki/core@wmf/1.46.0-wmf.5] Adjust styling of confirmation emails

https://gerrit.wikimedia.org/r/1216621

Mentioned in SAL (#wikimedia-operations) [2025-12-08T17:31:37Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1216620|Move mustache templates from includes (T409057)]], [[gerrit:1216621|Adjust styling of confirmation emails (T411526)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-08T17:33:37Z] <urbanecm@deploy2002> urbanecm: Backport for [[gerrit:1216620|Move mustache templates from includes (T409057)]], [[gerrit:1216621|Adjust styling of confirmation emails (T411526)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-08T17:42:04Z] <urbanecm@deploy2002> Finished scap sync-world: Backport for [[gerrit:1216620|Move mustache templates from includes (T409057)]], [[gerrit:1216621|Adjust styling of confirmation emails (T411526)]] (duration: 10m 28s)

I backported the code to production and tested again with testwiki. Good news, the logo appears fine with Gmail too. Not sure why it is not working with beta.

Thx, @Urbanecm_WMF! I checked confirm email on testwiki wmf.5 - the issues have been fixed. Probably it's worth to confirm with @AAlhazwani-WMF. Couple of things that do not quite match the design in T396155

  • The logo (gmail desktop) looks rather small.
  • non-gmail email shows "Confirm your email" as a link
gmailanother email client
Screenshot 2025-12-08 at 3.36.21 PM.png (872×1 px, 108 KB)
IMG_7592.PNG (1×828 px, 120 KB)
Screenshot 2025-12-08 at 4.15.27 PM.png (780×1 px, 153 KB)

The logo (gmail desktop) looks rather small.
non-gmail email shows "Confirm your email" as a link

I'm noticing the same issues. I don't think these issues needs to block the release, but we should aim to fix both.

We might also want to add design specs for darkmode? Here's a screenshot from Gmail with device appearance settings set to "Dark":

IMG_9924.jpg (1×1 px, 153 KB)

We might also want to add design specs for darkmode? Here's a screenshot from Gmail with device appearance settings set to "Dark":

IMG_9924.jpg (1×1 px, 153 KB)

Why is dark mode working differently in each client...

image.png (1×3 px, 254 KB)

This is what I see in Outlook (email's from beta, but that shouldn't cause an issue anyway).

  • The logo (gmail desktop) looks rather small.
  • non-gmail email shows "Confirm your email" as a link

yeah, that's the case because the PNG variant includes the logotype ("wikipedia test wiki") below the logomark (wiki globe). i'd suggest increasing its size from 50px to 100px.


beside dark mode (that we could address separately) there are a few small spacing issues. while inspecting the code, it was hard to understand which styles are from our own code, and which are from the email client.

for example, on mobile we keep the 32px padding all around, while we'd like to set it to 16px under 600px width. or that we'd like to "hide" the light grey background too. for simplicity, i've put together a codepen with the desired styles https://codepen.io/forestbee/full/RNagLYm.

Change #1216795 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/core@master] Confirmation email: further styling adjustments

https://gerrit.wikimedia.org/r/1216795

Change #1216867 had a related patch set uploaded (by Urbanecm; author: Michael Große):

[mediawiki/core@wmf/1.46.0-wmf.5] Confirmation email: further styling adjustments

https://gerrit.wikimedia.org/r/1216867

Change #1216795 merged by jenkins-bot:

[mediawiki/core@master] Confirmation email: further styling adjustments

https://gerrit.wikimedia.org/r/1216795

Change #1216867 merged by jenkins-bot:

[mediawiki/core@wmf/1.46.0-wmf.5] Confirmation email: further styling adjustments

https://gerrit.wikimedia.org/r/1216867

Mentioned in SAL (#wikimedia-operations) [2025-12-10T16:49:12Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1216867|Confirmation email: further styling adjustments (T411526)]], [[gerrit:1217235|i18n: replace <> to avoid false positive export errors]]

Mentioned in SAL (#wikimedia-operations) [2025-12-10T17:46:44Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1216867|Confirmation email: further styling adjustments (T411526)]], [[gerrit:1217235|i18n: replace <> to avoid false positive export errors]]

Change #1217258 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217258

Change #1217259 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217259

Change #1217259 merged by Urbanecm:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217259

Change #1217258 merged by Urbanecm:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217258

Change #1217573 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^2 "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217573

Change #1217574 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^2 "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217574

Change #1217573 merged by jenkins-bot:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^2 "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217573

Change #1217574 merged by jenkins-bot:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^2 "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217574

Mentioned in SAL (#wikimedia-operations) [2025-12-11T19:47:12Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1217573|Revert^2 "Confirmation email: further styling adjustments" (T411526)]], [[gerrit:1217574|Revert^2 "i18n: replace <> to avoid false positive export errors" (T411526)]]

Change #1217580 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^3 "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217580

Change #1217581 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^3 "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217581

Change #1217580 merged by Urbanecm:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^3 "Confirmation email: further styling adjustments"

https://gerrit.wikimedia.org/r/1217580

Change #1217581 merged by Urbanecm:

[mediawiki/core@wmf/1.46.0-wmf.5] Revert^3 "i18n: replace <> to avoid false positive export errors"

https://gerrit.wikimedia.org/r/1217581

Mentioned in SAL (#wikimedia-operations) [2025-12-11T20:49:00Z] <urbanecm@deploy2002> Started scap sync-world: Backport for [[gerrit:1217580|Revert^3 "Confirmation email: further styling adjustments" (T411526)]], [[gerrit:1217581|Revert^3 "i18n: replace <> to avoid false positive export errors" (T411526)]]

Mentioned in SAL (#wikimedia-operations) [2025-12-11T21:22:06Z] <urbanecm@deploy2002> urbanecm: Backport for [[gerrit:1217580|Revert^3 "Confirmation email: further styling adjustments" (T411526)]], [[gerrit:1217581|Revert^3 "i18n: replace <> to avoid false positive export errors" (T411526)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-12-11T21:35:04Z] <urbanecm@deploy2002> Finished scap sync-world: Backport for [[gerrit:1217580|Revert^3 "Confirmation email: further styling adjustments" (T411526)]], [[gerrit:1217581|Revert^3 "i18n: replace <> to avoid false positive export errors" (T411526)]] (duration: 46m 04s)