I have been building a cookie consent pop-up that includes an embedded SVG. Currently, the fill color for this SVG is the only part of the pop-up that is hard-coded, and I’d like to be able to set the color from a property.
I have created the property, but every time I try, it fails to set the fill color.
Any ideas out there?
<svg class="-mb-28 ml-4 h-28 w-28"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd"
>
<path fill="#aeb0a9" fill-opacity="0.4" d="M12,1 C12.2108325,1 12.4216651,1.04320503 12.6141643,1.12529458 L21.2445485,4.57737628 C22.252878,4.97918303 23.0045418,5.91673213 22.9999793,7.04870385 C22.9770419,11.3346426 21.107049,19.1763551 13.2099954,22.7407698 C12.4445817,23.0864101 11.5554183,23.0864101 10.7900046,22.7407698 C2.89295103,19.1763551 1.02295809,11.3346426 1.00002066,7.04870385 C0.99545819,5.91673213 1.74712202,4.97918303 2.75545155,4.57737628 L11.390419,1.12529458 C11.5783349,1.04320503 11.7891675,1 12,1 Z M12,3.88609584 L12,20.2219167 C18.3249761,17.3315004 20.0253864,10.9414768 20.0666362,7.10919089 L12,3.88609584 C12,3.88609584 12,3.88609584 12,3.88609584 Z"></path>
</svg>
The fill="#aeb0a9"
is what I’m trying to set, but I’m doing something wrong getting the color from the color property.