I am using Vue.js and I'm creating SVGs that use shape patterns as background. The patterns are working fine, but whenever I try to change the color of the pattern filling dynamically by passing props, it doesn't work. I am sure that the prop that I am passing is correct since I'm using it elsewhere.
<pattern
id="TrianglePattern"
patternUnits="userSpaceOnUse"
x="0"
y="0"
width="1500"
height="1500"
viewBox="0 0 10 10">
<path
d="M 0 0 L 7 0 L 3.5 7 z"
:fill="groupDetails.color ? groupDetails.color : '#ffffff'"
stroke="blue" />
</pattern>
Works fine here: