Fer• 3,970
@fernandolapaz
Posted
Hi, regarding your question,
You could do it this way:
- insert the SVG image inline (using the <svg> element)
- change the value of the
fill
attribute tocurrentcolor
- and that's it, you can use the
color
property in CSS as usual to change the color of the arrow as if it were text.
<button id="share-button">
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="13">
<path fill="currentcolor"
d="M15 6.495L8.766.014V3.88H7.441C3.33 3.88 0 7.039 0 10.936v2.049l.589-.612C2.59 10.294 5.422 9.11 8.39 9.11h.375v3.867L15 6.495z" />
</svg>
</button>
I hope it’s useful, and let me know if it worked : )
Regards,
0