Change the color of icon: ion-chevron-right


I am new to ionic, may I know how to change the icon color?

Below is my code, and screen capture:


The current icon look like grey, I would like to change it to black:



<i class="icon ion-chevron-right icon-accessory" style="color:#000"></i>

You can use ionic’s built in classes for colors as well.

<i class="icon ion-chevron-right icon-accessory dark" ></i>

So if you use the icon-accessory class, it will hard code the icon’s color. So css would be need for that.

But if you remove that class, you can the css color classes.