So I have the following SVG image:
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
<title>ic_toggle_on_1</title>
<style>
.circle {
fill:#3165bd;
}
</style>
<path class="circle" d="M8,0a8,8,0,1,0,8,8A8,8,0,0,0,8,0ZM6.78,11.73,3.17,8.12,4.58,6.7l2.2,2.2,4.64-4.63,1.41,1.41Z"/>
</svg>
Which I am trying to change the colour on hover with the following CSS:
.toggleCircle[data-state="open"]:hover img {
/*fill:#047ad4;*/
fill:red!important;
}
Which works fine if I use say border
but for some reason the fill attribute cannot amend the SVG. I've read that as long as the fill isn't inline this should be overwritable by CSS and although there is change color of svg images with css this is 6 years old and I believe quite out of date.
Am I missing anything obvious as to why this SVG won't change colour?