Skip to content

MNTOR-5282 - Swap email logos for dark-mode variants#6658

Merged
codemist merged 2 commits into
mainfrom
mntor-5282
May 19, 2026
Merged

MNTOR-5282 - Swap email logos for dark-mode variants#6658
codemist merged 2 commits into
mainfrom
mntor-5282

Conversation

@codemist
Copy link
Copy Markdown
Collaborator

@codemist codemist commented May 19, 2026

References:

Jira: MNTOR-5282

Description

Adds dark-mode support for the Monitor and Mozilla logos in the transactional emails. When a recipient's mail client is set to dark mode, the standard logos are hidden and dark-mode-friendly variants are shown in their place. Light mode rendering is unchanged.

The technique used here is a CSS-driven image swap: each logo is rendered twice, once tagged with dm-img-light and once with dm-img-dark. The dark variant is hidden by default, and a prefers-color-scheme: dark media query inverts which one is visible.

Screenshot (if applicable)

image

How to test

Checklist (Definition of Done)

  • Localization strings (if needed) have been added.
  • Commits in this PR are minimal and have descriptive commit messages.
  • I've added or updated the relevant sections in readme and/or code comments
  • I've added a unit test to test for potential regressions of this bug.
  • If this PR implements a feature flag or experimentation, I've checked that it still works with the flag both on, and with the flag off.
  • If this PR implements a feature flag or experimentation, the Ship Behind Feature Flag status in Jira has been set
  • Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
  • All acceptance criteria are met.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.

Copy link
Copy Markdown
Collaborator

@joeherm joeherm left a comment

Choose a reason for hiding this comment

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

LGTM- thanks for the tests.

@codemist codemist added this pull request to the merge queue May 19, 2026
Merged via the queue into main with commit 6c27592 May 19, 2026
19 checks passed
@codemist codemist deleted the mntor-5282 branch May 19, 2026 20:00
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