You can add a class to the alert:
{
.., cssClass:'alert-danger'
}
in the .scss:
ion-alert {
&.alert-warning {
.alert-head {
background: map-get($colors, warning);
color: #fff;
margin-bottom: 10px;
}
}
&.alert-danger {
.alert-head {
background: map-get($colors, danger);
color: #fff;
margin-bottom: 10px;
}
}
&.alert-success {
.alert-head {
background: map-get($colors, success);
color: #fff;
margin-bottom: 10px;
}
}
}