Essentially, I'm encountering an issue with two SVGs. When I try to change the color of the second SVG, it remains unchanged. However, if I change the color of the first SVG, it affects both of them.
In the following example, if you duplicate the circle and modify the color in the stop
:
<linearGradient id="gradient" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stop-color="#FFE009" />
<stop offset="100%" stop-color="#5eaefd" />
</linearGradient>
This issue can be observed, and the only solution I've found is to assign a unique id
for each SVG. However, this method is not very practical, especially when dealing with multiple SVGs.
Is there a fix or an alternative solution to this problem?