Skip to content

How to change color of icons? #60

Closed Answered by ashley-hunter
Mr-Faisal-SGD asked this question in Q&A
Discussion options

You must be logged in to vote

Sure, so I see the icon color is matching the text within the button which suggests the styles setting the color on the button has a higher specificity and is overriding the color.

An easy way to check would be to move the icon out of the button and see if it appears red. If not, it would suggest the color is being set more globally rather than by the button styles.

At worst a workaround would be to set the color on the icon using CSS and add !important, e.g.

<ng-icon style="color: red !important" ...>

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ashley-hunter
Comment options

Answer selected by Mr-Faisal-SGD
@Mr-Faisal-SGD
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants