Thoughts on removing the following paramters?
confirmButtonColorcancelButtonColorbuttonsStylingimageWidthimageHeightwidthpaddingbackgroundI feel all of these can be achieved more effectively and more flexibly via css and classes, and obviously converting these defaults to css in the provided css files so that it styles the same out of the box.
No doubt for me, it's better and smarter to use classes instead of parameters. But programming skills of swal2 users are varied. Take a look on stackoverflow.com/questions/tagged/sweetalert, there're so many questions from absolute beginners :)
Let's leave these params for beginners. Experienced users always can stylize swal2 modal by using classes.
I know this is closed/old (and hopefully you catch this message), but should/could those be allowed to be set to null to not have inline styles? Using !important to override an inline style is so bad.
@nschubach If it doesn't already work like that, I think it's a reasonable idea for a change. Does it not work like that?
IMHO Ideally, in addition to being able to set these options to null, null would be the default for all of them, and what were previously the defaults would go into the sass files. Inline styles trump class styles (/w exception of !important styles) so it would be a non-breaking change.
Just my two cents, not sure anyone cares about this issue though.
Most helpful comment
No doubt for me, it's better and smarter to use classes instead of parameters. But programming skills of swal2 users are varied. Take a look on stackoverflow.com/questions/tagged/sweetalert, there're so many questions from absolute beginners :)
Let's leave these params for beginners. Experienced users always can stylize swal2 modal by using classes.