Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property style.background has stopped working #75

Closed
catempire opened this issue May 26, 2021 · 4 comments
Closed

Property style.background has stopped working #75

catempire opened this issue May 26, 2021 · 4 comments

Comments

@catempire
Copy link

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
Copy link
Contributor

AStoker commented Jul 14, 2021

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
Copy link
Author

Sure, here you go:

https://jsfiddle.net/ajtcupbf/

@Tigerman55
Copy link

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
Copy link

Fixed by #81 in 1.11.2

@apvarun apvarun closed this as completed Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants