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

AlertController background color

$
0
0

@wterrill wrote:

I'm having a problem trying to change the background color on a specific alert controller. Specifically, I'm trying to modify the SASS variable "alert-md-background-color" but only for one specific alert.

I've tried using cssClass: in the alert definition like this as well as using alert.setCssClass() but this doesn't seem to work either. (It seems like the Sass variables are overriding any modification?)

So, the only way I've been able to successful change the background color is by setting $alert-md-background-color:#F35E5D in the variables.scss file... but that changes the background color on all alerts.

So, I'm stuck... what's the proper way to change the background color on a specific alert? (or anything that is governed by a Sass variable, for that matter)

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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