Open brentvollebregt opened 1 year ago
When creating an alert with only a title and icon, the spacing at the bottom that is usually provided when using buttons or text is not rendered.
title
icon
buttons
text
For example, doing the following,
swal({ title: "Example Title", icon: "error", buttons: false });
will render,
I would expect that there is spacing similar to when text is provided:
One solution I see is to apply the bottom spacing like the margin for text is added, something like:
.swal-title:last-child { margin-bottom: 45px; }
This would then give,
The issue
When creating an alert with only a
title
andicon
, the spacing at the bottom that is usually provided when usingbuttons
ortext
is not rendered.For example, doing the following,
will render,
Expectation
I would expect that there is spacing similar to when
text
is provided:Possible Solution
One solution I see is to apply the bottom spacing like the margin for
text
is added, something like:This would then give,