Open amitai52 opened 7 years ago
npm run compile
commandIt seems that I found the problem - Sass compiler converts unicode variables to UTF-8 characters. This is can cause problems. Since I can't reproduce the problem, could you test the solution?
source/scss/mixins/_tools.scss
@mixin unicodeContent($content) {
content: unquote("\"")+unquote(str-insert($content,"\\", 1))+unquote("\"");
}
source/scss/_variables.scss
$toastr-icon-success: "\f00c" !default;
$toastr-icon-error: "\f057" !default;
$toastr-icon-info: "\f129" !default;
$toastr-icon-warning: "\f071" !default;
with
$toastr-icon-success: "f00c" !default;
$toastr-icon-error: "f057" !default;
$toastr-icon-info: "f159" !default;
$toastr-icon-warning: "f071" !default;
source/scss/plugins/_toastr.scss
.toast-success:before { content: $toastr-icon-success; }
.toast-error:before { content: $toastr-icon-error; }
.toast-info:before { content: $toastr-icon-info; }
.toast-warning:before { content: $toastr-icon-warning; }
with
.toast-success:before { @include unicodeContent($toastr-icon-success); }
.toast-error:before { @include unicodeContent($toastr-icon-error); }
.toast-info:before { @include unicodeContent($toastr-icon-info); }
.toast-warning:before { @include unicodeContent($toastr-icon-warning); }
Thank You
Thanks for your answer, the above changes do solve the problem ...
When will this bug be fixed in the official version?
Adding toastr breaks the icons in the 4 different msgs. This is caused by 2 things:
font-awesome is used in the CSS instead of the background images that are default but FA is not added / install / required - so icon comes up empty If you want to use your SCSS mod, FA must be included before.
Also, the the CSS
:before
+content:
statements are copied wrong (looks like encoding problem) - so icon corrupts on the way and displays wrong even after FA is included(using builder on MacOS)