Problem/Motivation

There is a small accessibility improvement that can be made in the main template for emails.
The table used to wrap the body of the email should be indicated as presentation to improve screen readers.

Proposed resolution

<html>
<body>
<div{{ attributes.addClass(classes) }}>
  <table width="100%" cellpadding="0" cellspacing="0" role="presentation">
    <tr>
      <td>
        <div style="padding: 0px 0px 0px 0px;" class="clearfix">
          {{ body }}
        </div>
      </td>
    </tr>
  </table>
</div>
</body>
</html>

here is more information on the role on tables for email accessibility
https://www.emailonacid.com/blog/article/email-development/why-should-i-...

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

EHLOVader created an issue. See original summary.

ehlovader’s picture

Status: Active » Needs review

AdamPS made their first commit to this issue’s fork.

  • AdamPS committed 0b89d2fa on 1.x authored by EHLOVader
    Issue #3426197: Accessibility improvement for email template
    
adamps’s picture

Status: Needs review » Fixed

Thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.