Svg Background Image Fill Currentcolor. Interface design that inherits color all around compontents. And that will ensure it snags the color from whatever you would normally expect it to. The color attribute is used to provide a potential indirect value currentcolor for the fill stroke stop color flood color and lighting color attributes.
As with most things i dive into with too much optimism i ran into a snag. Currentcolor we re also able to inherit any font colors attached to the element. One possibility which i d argue isn t a particularly good one is to have two versions of every icon in the respective colors and swap between them. Jantimon no but the point of my issue is not using only background i wrote you can use svg in different ways and modify his color even on ie9 the point of the readme talk about the impossibility to change the icon color if you use svg as background image so it s not related to ie9 the key here is that svg can be used in multiple ways and not only as background.
Using it in animation.
At this point you ve sort of given up on being able to change the fill. One possibility which i d argue isn t a particularly good one is to have two versions of every icon in the respective colors and swap between them. Currentcolor we re also able to inherit any font colors attached to the element. As with most things i dive into with too much optimism i ran into a snag. We can style the fill of an svg with currentcolor like this.