# Style class not working on Icon

**URL:** <https://forum.inductiveautomation.com/t/style-class-not-working-on-icon/45866>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [April 21, 2021, 3:02pm UTC](https://forum.inductiveautomation.com/t/style-class-not-working-on-icon/45866 "2021-04-21T15:02:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [April 21, 2021, 3:21pm UTC](https://forum.inductiveautomation.com/t/style-class-not-working-on-icon/45866/2 "2021-04-21T15:21:21Z")

</div>

Hi @retinder.labana, you will need to use the text color property instead.

I take no credit, I just remembered [this](http://forum.inductiveautomation.com/t/the-icon-component-in-8-1-doesnt-accept-css3-fill-property-in-style-class/45646/2) post which @swolnisty found the solution to a little while ago.

---

_[View the full topic](https://forum.inductiveautomation.com/t/style-class-not-working-on-icon/45866)._
