react-html-email icon indicating copy to clipboard operation
react-html-email copied to clipboard

Unnecessary padding warning

Open arasmussen opened this issue 9 years ago • 1 comments

Style property padding supplied to Item, in outlook: padding for p, div and a tags is not supported

The Item component adds the padding to a <td /> so this warning seems unnecessary. Can we only give it when the padding is added to a p, div, or a tag?

arasmussen avatar Jun 01 '16 21:06 arasmussen

Good idea! This warning is not very smart; it comes from the scraped data and doesn't know about the component it is being called on. We should add a special case to the style validator that checks for this warning string and checks whether the component matches.

chromakode avatar Jul 19 '16 06:07 chromakode