I have been working with Vue.js to create SVGs with shape patterns as background. The patterns themselves are functioning correctly, but I am encountering an issue when attempting to dynamically change the color of the pattern filling by passing props. Despite being confident in the correctness of the prop being passed, the color does not update as expected.
<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>