Hi there,
I am busy implementing toast messages to give feedback to our users on their network. If the network disconnects we want to show a reddish toaster, if it reconnects a green one etc (with some text)
I noticed i can override a sass varaible but this will not allow me to use different colors for different toasters.
I also noticed a option to give append a css class, but when i give it a unique class and on this class say
background-color: red;
The entire app turns to red once a toaster pops up
This is not what i expected.
Anyone have any experience using differently coloured toasters ?
Example:
this.disconnectToast = this.toastCtrl.create({
message: 'Network disconnected',
showCloseButton: true,
cssClass: "toast-danger",
position: "bottom"
});
toast-danger contains backgorund-color:red;
With best regards,
Robin