Remove style tag warnings in emails that use the data-hse-inline-css attribute

Hubspot provides a feature that inlines all of the CSS included within this special style tag. It works great, and utlimately, style tags are stripped out and CSS is inlined.

<style type="text/css" 
 data-hse-inline-css="true">
 .this-is-inlined {}
</style>

Unfortunately, the “most email clients don’t support style tags” warning still triggers in the drag and drop editor when this tag is included in a module.

That warning is unecessary and should be removed. I’ve found that it causes a lot of confusion with other members of my team so it’s tough to just ignore.

Possible solutions:

1. include a place to include the tag in individual email settings

2. hide the warning when the data-attribute is included

3. hide the warning based on user-roles (developers only)

I’d love to see this happen! I’d also love to see this fix applied when flagging styles to be inlined using id="hs-inline-css". Style inlining incredibly useful functionality that I often have to avoid using, due to the confusion that this error message causes.

I’d also argue that this warning should never really be displayed to editors in the email builder the first place. It’s neither clear nor useful for the large majority of editors, and there’s nothing that can be done to resolve it in that context. It would be much more appropriate for this warning to be delivered in Design Tools — that’s where the (potential) issue is caused, that’s where it can be resolved, and that’s where a developer will see it.