We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 text was updated successfully, but these errors were encountered:
No branches or pull requests
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,
The text was updated successfully, but these errors were encountered: