Accessibility improvement for email template

Created on 6 March 2024, 8 months ago
Updated 27 April 2024, 7 months ago

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-...

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States EHLOVader

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024