Add zero-width space inside Button component to force line-height rule

This commit is contained in:
ErickSkrauch 2020-07-16 01:00:34 +03:00
parent 0d21dc8bf8
commit 6bb21fd5d3

View File

@ -16,6 +16,9 @@ const Button: FunctionComponent<Props> = ({ label, style, color = 'green' }) =>
...styles[color],
...style,
}}>
{/* Some email clients don't apply a line-height rule until some text appears inside.
Add a zero-width space to ensure that text is always present, even if a <img> is passed */}
&#8203;
{label}
</div>
);