I can't change the color of svg icon trough css class.
I have class check-icon
which need to change color of svg:
.check-icon {
fill: $green !important;
}
This is HTML/jsx of svg check icon:
<img className="check-icon" src="/static/icons/check.svg" alt="check" />
This is svg icon:
<?xml version="1.0" encoding="UTF-8"?>
<svg width="13px" height="10px" viewBox="0 0 13 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 52.1 (67048) - http://www.bohemiancoding.com/sketch -->
<g id="Symbols" stroke="none" stroke-width="1" fill="currentcolor" >
<g id="Icons/Checkmark" fill="#044ca0">
<g id="Overrides/Cell/Accessory/Checkmark">
<polygon id="Checkmark" points="1.5 4.5 0 6 4 10 13 1.5 11.5 0 4 7"></polygon>
</g>
</g>
</g>
</svg>
Why color is not changed?