Hi there!
I am creating an allert on my service file, but the problem is that i am having dificulties with the css proprierties of the alert.
Code:
async createDiscountAlert(restaurantData) {
const alert = await this.alertController.create({
cssClass: 'teste',
header: restaurantData.promotion.type.discountTittle,
message: restaurantData.promotion.type.discountDescription,
buttons: [
{
text: 'Percebi!',
handler: () => {
console.log('Confirm Okay');
}
}
]
});
await alert.present();
}
The problem is that i dont know where to place my css since i am creating the alert ona service. I tried to place the css on the page that i am calling the function but it doesnt change anything.
This is my css:
.teste {
background-color: #F35E5D !important;
background: #F35E5D !important;
color: red !important;
$alert-md-background-color: #F35E5D;
$alert-ios-background: #F35E5D;
}
Can anyone help me?