Features
- New component:
mj-preview
inmj-head
enables to set an email preview that will be displayed in email clients but hidden from the body of the email (#388) - New attribute: all MJML body tags now support the
css-class
attribute. The class name set incss-class
will be passed to the root HTML element created from the MJML tag as well as the Outlook conditional comment if any, with a-outlook
suffix (#532) - New attribute:
mj-button
,mj-image
,mj-carousel-image
,mj-location
,mj-navbar
andmj-social
now support therel
attribute (#533) mj-social
now supports theborder-radius
attribute (#556)
Fixes
- The
line-height
attribute ofmj-button
is now set to1.2
by default to avoid any issue with multi-line buttons thanks to @rogierslag - The
text-transform
attribute onmj-link
is now correctly validated by the mjml-validator (#596) - The
alt
attribute onmj-image
is now set to13px
by default instead of0px
to avoid it from being invisible