You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've tested this issue by sending emails to both Gmail and iOS Mail clients, and we're noticing some inconsistencies with padding, particularly around social media icons. However, we were hoping to clarify the following:
Could you specify which elements within the <Body> component are showing inconsistent padding in your tests? In our testing, we mainly see discrepancies around social media icons, but this seems to be a localized issue rather than a <Body>-wide padding problem.
Are you seeing padding inconsistencies across the entire email content, or are there specific sections where this is more noticeable?
I was referring to the <Body> component itself, as the padding is not set by React Email by default. My assumption is that it should be reset to 0 to override any mail client-specific styling (e.g. default padding in iOS Mail).
It's possible that other React Email components have the same issue, but I haven't tested them.
Describe the Bug
The
<Body>
component doesn’t explicitly setpadding
, meaning that its value is inconsistent between the dev preview and mail clients.Which package is affected (leave empty if unsure)
@react-email/body
Link to the code that reproduces this issue
https://demo.react.email/preview/magic-links/slack-confirm?view=desktop&lang=markup
To Reproduce
Create an email with the
<Body>
component - do not explicitly setpadding
.Compare the preview output to Mail on iOS 18.
Expected Behavior
The
<Body>
component should explicitly set the defaultpadding
(presumably to0
).What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: