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

can we show a background colour/image to the toasts appearing. #30

Closed
ibmkaga opened this issue Jul 6, 2017 · 3 comments
Closed

can we show a background colour/image to the toasts appearing. #30

ibmkaga opened this issue Jul 6, 2017 · 3 comments

Comments

@ibmkaga
Copy link

ibmkaga commented Jul 6, 2017

currently, the toast messages are coming in a white background popup, is there a way to customize the colour/background image of the same to match it with the application theme or some custom requirement.

Regards,
Kapil.

@fkhadra
Copy link
Owner

fkhadra commented Jul 6, 2017

Hey @ibmkaga,

Yes, you can. Add the following style for instance:

.toastify-content{
 background: red;
}

You will probably need to override other styles as well to match your need. I'll review the style with the version 2 which is coming soon.

@ibmkaga
Copy link
Author

ibmkaga commented Jul 6, 2017

aha ok, gr8. how about a long message, its overflowing the popup in open area right now. Can the toast size be customized based on the content size.

@fkhadra
Copy link
Owner

fkhadra commented Jul 6, 2017

The easiest things to do is to wrap your message with a div or whatever you want and apply a custom style.
I have to admit that it's not user-friendly at all.

As mentioned there, the default design is not usable out of the box if you don't want to waste time with styling.

Sorry for that 😬

@fkhadra fkhadra closed this as completed Jul 12, 2017
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

2 participants