Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Ionic5 - Unable to change the color of toast cancel button

$
0
0

@RaghavendraKumar wrote:

I tried everything but unable to change the color of toast cancel button

this.toastCtrl.create({
message: messageInput,
position: ‘top’,
buttons: [
{
text: ‘x’,
role: ‘cancel’,
cssClass: ‘failuretoast1’,
handler: () => {
// Utils.log(‘Close clicked’);
}
}
],
cssClass: “failuretoast1”,
});

ion-toast.failuretoast1 {
color: orange !important;
–color: orange !important;
–button-color: #99226e !important;
}

.failuretoast1 {
color: orange !important;
–color: orange !important;
–button-color: #99226e !important;
}

Nothing works :frowning:

Css on inspect shows - toast-button-cancel and I am not able to change the color in this.

Please help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>