Referring to the picture, I want change the "No" to color red, Have put the css in app.component.css, variables.css and golbel.css, but noting changes. Hope that some one will help me.
Below is my alert code.
async presentAlertConfirm() {
const alert = await this.alertController.create({
header : 'Logout',
message : 'Are you sure you want to logout?',
buttons: [
{ text : 'No',
role : 'cancel',
cssClass : 'danger',
handler: () => {
console.log('Confirm Logout: ok');
}
},
{ text : 'Yes',
handler: () => {
this.docDataMgr.logout();
this.router.navigate(['login']);
console.log('Confirm Okay');
}
}
]
});
await alert.present();
}
CSS code:
.danger {
color: red;
}

