I have recently created an alert controller and am struggling to customize the appearance of the header
within the alert popup. Despite going through the documentation, I have not been able to find a suitable solution.
async customizeAlert(header, subHeader, message) {
const alert = await this.alertCtl.create({
cssClass: "my-custom-class",
header,
subHeader,
message,
buttons: ["Ok"],
});
alert.present();
}
Can anyone advise me on how to effectively style the header of the alert popup?
Note: I have already tried modifying the global.scss file as shown below
.my-custom-class {
.alert-wrapper {
.alert-head {
color: green;
}
}
}
Despite following @Vijay Kumawat's recommendation, I have not seen any changes in the appearance of the header.