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

Style Options: "backgroundColor" not working! #81

Closed ghost closed 2 years ago

ghost commented 3 years ago

Toastify({ style: { backgroundColor: '#dc3545' } }).showToast(); Not Working...

default: background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5); background: linear-gradient(135deg, #73a5ff, #5477f5);

ehudthelefthand commented 3 years ago

I got a similar problem. Here is mine.

Toastify({
                    text: 'Your request was error. Please try again.',
                    duration: 3000,
                    position: 'center',
                    style: {
                        background: '#CC0000'
                    }
                }).showToast()

It doesn't work either.

ashkan-ahmadi commented 3 years ago

Same. I get the warning: DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. but when I use style: {background: '#000000'}, it doesn't work.

JanSchuerlein commented 2 years ago

Can confirm, the style: {background: ''} parameter isn't working.

SergioLaRosa commented 2 years ago

Can confirm too, style: {background: ''} doesn't work at all.

apvarun commented 2 years ago

Should be fixed in the latest version v1.11.2