mirror of
https://github.com/elyby/emails-renderer.git
synced 2024-11-08 13:42:43 +05:30
Add zero-width space inside Button component to force line-height rule
This commit is contained in:
parent
0d21dc8bf8
commit
6bb21fd5d3
@ -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 */}
|
||||
​
|
||||
{label}
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user