Skip to content

Commit

Permalink
feat: add $swal2-icon-font-family SCSS variable (#1628)
Browse files Browse the repository at this point in the history
* Add $swal2-icon-font-family SCSS variable

This will set the default font style for the info, warning,
and question icons as per the style in the documentation

* Set $swal2-icon-font-family to inherit
  • Loading branch information
gverni authored and limonte committed Jun 21, 2019
1 parent 1010b2c commit 3f7aaa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sweetalert2.scss
Expand Up @@ -648,6 +648,7 @@ body {
zoom: $swal2-icon-zoom;
border: .25em solid transparent;
border-radius: 50%;
font-family: $swal2-icon-font-family;
line-height: $swal2-icon-size;
cursor: default;
user-select: none;
Expand Down
1 change: 1 addition & 0 deletions src/variables.scss
Expand Up @@ -31,6 +31,7 @@ $swal2-error: #f27474 !default;
$swal2-warning: #f8bb86 !default;
$swal2-info: #3fc3ee !default;
$swal2-question: #87adbd !default;
$swal2-icon-font-family: inherit !default;

// IMAGE
$swal2-image-margin: 1.25em auto !default;
Expand Down

0 comments on commit 3f7aaa8

Please sign in to comment.