Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 14:47
· 8 commits to master since this release
2eea6fb

Behaviour changes to review before upgrading: see UPGRADING.md.

Added

  • container_gutter spacing token (16px) and $am-container-gutter: the first
    and last column of a row carry it as an outer, border-box, inlined padding;
    nested columns do not repeat it.
  • <title> in the layout head, set to the message subject (new
    layouts/activemail/_document_head partial).
  • Quality rules, on by default and disableable: title, anchor_href,
    placeholder (BuiltinRules::PLACEHOLDER), unsupported_color,
    text_entities.
  • Quality::Configuration#allow_declined and the allow_declined: option of
    Guard#violations, Guard#valid?, assert_email_quality and
    be_a_valid_email.
  • Quality::Configuration#rule_exemptions (by preview name or preview#email) and
    the skip: option of Guard#violations, Guard#valid?, assert_email_quality
    and be_a_valid_email: exempt a preview from named rules, built-in or custom,
    without disabling them for every preview.
  • mso-padding-alt on the button cell so Outlook keeps the padding.
  • Below the container width, stacked columns take the container gutter on both
    sides in clients that keep media queries.

Changed

  • A nested <columns> ghost cell and max-width are computed against the
    content box of the enclosing columns (their share minus their padding)
    instead of the container.
  • The MSO ghost cell of a column wraps it in its own <table><tr> (the <th>
    used to sit directly in a <td>).
  • Conditional comments use <!--[if mso]> instead of <!--[if mso | IE]>.
  • <button> and <cta>: the fill and the radius live on the cell only; the
    <a> carries display:inline-block, the body font and a 1.25 line height.
    The dark-mode fill targets the cell.
  • <center> renders a <center align="center" class="float-center"> and no
    longer rewrites its children.
  • A mailer that declines to send (NullMail) is a declined violation unless
    allowed.
  • The generated layouts render the same _document_head, _head and _footer
    partials as the gem layout.
  • With Premailer the parsed framework CSS is cached per stylesheet fingerprint
    (a FIFO of 16) instead of being re-parsed for every email.

Removed

  • The .columns.first.last SCSS rule: a lone column now takes both container
    gutters through .first and .last.