mirror of
https://github.com/elyby/emails-renderer.git
synced 2024-12-22 05:09:44 +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],
|
...styles[color],
|
||||||
...style,
|
...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}
|
{label}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user