'White SVG turning into black laravel?
I have an issue with some SVG icons that are white but they turn into black. Here is an example :
<svg xmlns="http://www.w3.org/2000/svg" width="30.864" height="30.849" viewBox="0 0 30.864 30.849">
<g id="Calque_2" transform="translate(0.509 0.503)" fill="#fff">
<g id="ELEMENTS" transform="translate(0 0)" fill="#fff">
<path id="Tracé_21" d="M20.556,19.126l.7-4.319H17.084v-2.8a2.154,2.154,0,0,1,2.43-2.328h1.879V6.006a22.544,22.544,0,0,0-3.339-.3c-3.41,0-5.636,2.042-5.636,5.81v3.288H8.62v4.319h3.8V29.561a15.805,15.805,0,0,0,2.328.174,16.051,16.051,0,0,0,2.338-.174V19.126Z" transform="translate(0.182 0.111)" fill="#fff" stroke="#fff" stroke-width="1"/>
<path id="Tracé_20" d="M29.855,14.927A14.927,14.927,0,1,0,12.6,29.681V19.246H8.8V14.927h3.8V11.639c0-3.737,2.226-5.81,5.636-5.81a22.544,22.544,0,0,1,3.339.3V9.8H19.7a2.154,2.154,0,0,0-2.43,2.328v2.8h4.176l-.664,4.319H17.306V29.681A14.937,14.937,0,0,0,29.855,14.927Z" transform="translate(0.001 -0.009)" fill="none" stroke="#fff" stroke-width="1"/>
</g>
</g>
</svg>
I added fill="#fff" on the g and path tags but it keeps turning into black. How can i fix that ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
