Skip to content

Commit

Permalink
Merge pull request #9012 from CitizenLabDotCo/TAN-2646-remove-logo-im…
Browse files Browse the repository at this point in the history
…age-alt-text-from-mails

[TAN-2646] Remove alt text from mail logo image
  • Loading branch information
jinjagit authored Sep 30, 2024
2 parents e82e64a + 8221005 commit b1c878e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions back/app/views/application/_head.mjml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
<mj-all padding="0" font-family="Arial" font-size="15px" line-height="150%" color="black" />
</mj-attributes>

<%# We add underscores to pad the text displayed in the preview so that the body text (including the logo alt text) is not visible %>
<% unless preheader.empty? %>
<mj-preview>
<%= preheader + ' _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________'%>
<%= preheader + ' - '%>
</mj-preview>
<% end %>
</mj-head>
3 changes: 2 additions & 1 deletion back/app/views/application/_logo_medium_top.mjml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<mj-column>
<mj-raw>
<%= link_to home_url do %>
<%= image_tag tenant_logo_url, alt: 'Organization logo' %>
<%# We don't add an alt-text, as this will be visible in mail clients mail list, appended to the preheader text %>
<%= image_tag tenant_logo_url %>
<% end %>
</mj-raw>
</mj-column>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<%# We add underscores to pad the text displayed in the preview so that the body text (including the logo alt text) is not visible %>
<% unless preheader.empty? %>
<mj-preview>
<%= preheader + ' _________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________'%>
<%= preheader + ' - '%>
</mj-preview>
<% end %>
</mj-head>

0 comments on commit b1c878e

Please sign in to comment.