t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.38k stars 2.84k forks source link

Success icon bug on dark backgrounds #969

Open hamid0740 opened 3 years ago

hamid0740 commented 3 years ago

Hello, as you can see in the gif below, in the dark backgrounds, the success icon will have a little problem. If you can please make this icon customizable, too. Success-icon-bug

I should also mention that the other icons including: info, error & warning do not have any problems with dark backgrounds and work properly.

imkuroneko commented 3 years ago

Add this on your CSS file for handle that situation

.swal-icon--success__hide-corners, .swal-icon--success:after, .swal-icon--success:before {
    background: #5a5a5a; /* your color here */
}