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

Style Options: "backgroundColor" not working! #81

Closed
ghost opened this issue Jul 21, 2021 · 5 comments
Closed

Style Options: "backgroundColor" not working! #81

ghost opened this issue Jul 21, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2021

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

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

@ehudthelefthand
Copy link

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

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

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

@SergioLaRosa
Copy link

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

@apvarun
Copy link
Owner

apvarun commented Oct 6, 2021

Should be fixed in the latest version v1.11.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants