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
In the function computeFontWidthAndSpaceCount in the Button component, a division by zero results in <!--[if mso]><i style="mso-font-width:NaN%;mso-text-raise:18" hidden></i><![endif]-->.
Describe the Bug
In the function
computeFontWidthAndSpaceCount
in theButton
component, a division by zero results in<!--[if mso]><i style="mso-font-width:NaN%;mso-text-raise:18" hidden></i><![endif]-->
.Which package is affected (leave empty if unsure)
@react-email/button
Link to the code that reproduces this issue
https://github.com/resend/react-email/blob/canary/packages/button/src/__snapshots__/button.spec.tsx.snap
To Reproduce
Not needed, as even the snapshots contain the bug.
Expected Behavior
It should not result in
NaN%
What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: