Can't change the iron-icon fill color

526 views
Skip to first unread message

Petar Petrov

unread,
Jun 24, 2015, 3:23:44 AM6/24/15
to polym...@googlegroups.com
Hello,

My name is Petar and I have some problems with setting the fill color of an iron-icon element.

Based on the core-icon I first tried this:
iron-icon: {
        fill: red;
}
but it doesn't work...

iron-icon uses currentColor, so I tried this too:
iron-icon: {
       color: red;
}
but it doesn't work too.

Am I missing something?
It will be batter if there is a css custom property for that.

Everything else is ok, so the problem isn't from the environment.

Thank you very much and have a nice day,
Petar

Petar Petrov

unread,
Jun 24, 2015, 3:51:49 AM6/24/15
to polym...@googlegroups.com
Ops, there is no ':' after the selector. Just a mistyped email (it still doesn't work)

iron-icon {
        fill: red;
}

iron-icon: {
       color: red;
},

Best regards,
Petar


From: p.pe...@hotmail.com
To: polym...@googlegroups.com
Subject: Can't change the iron-icon fill color
Date: Wed, 24 Jun 2015 07:23:40 +0000
Reply all
Reply to author
Forward
0 new messages