apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.13k stars 230 forks source link

Property style.background has stopped working #75

Closed catempire closed 2 years ago

catempire commented 3 years ago

I am pulling Toastify JS from the CDN. Just now I've realized that the property style.background is no longer working, and my toasts are using the built-in style from toastify.css instead. (I did force reload all my resources to ensure that it wasn't a stale version.) The property backgroundColor still works, but this gives me a deprecation warning.

AStoker commented 3 years ago

Can you show the code you're using? I'm wondering if it's a precedence thing going on here... Any chance of a repro with something like jsfiddle?

catempire commented 3 years ago

Sure, here you go:

https://jsfiddle.net/ajtcupbf/

Tigerman55 commented 3 years ago

For now, I am just using css to style the background color. You can apply background: inherit; to the .toastify selector, then whatever bg you want to the className you specify in the js.

codefrau commented 2 years ago

Fixed by #81 in 1.11.2