Hello I am trying to center the buttons on my confirmation alert. I can center the title and message as well as change the color of the alert buttons, but I can’t center buttons. They appear shifted to the right.
Here is my alert definition:
let alert = this.alert.create({
title: 'Reset',
message: 'Reset to Default Settings?',
cssClass: 'reset',
buttons: [
{
text: 'Cancel',
role: 'cancel',
handler: () => {
console.log('Cancel clicked');
}
},
{
text: 'Confirm',
handler: () => {
console.log('Reset clicked');
}
}
]
});
alert.present()
Here is my css:
.reset {
.alert-wrapper {
background-color: #c80000 !important;
}
.alert-title {
color: white !important;
text-align: center !important;
}
.alert-message {
color: white !important;
text-align: center !important;
}
.alert-sub-title {
color: white !important;
text-align: center !important;
}
button {
color: white !important;
text-align: center !important;
}
}
Any insight would be greatly appreciated