I am trying to make an svg image stroke color change when the mouse moves over the image. What I have now does not change the color of the stroke, and I am not sure why. If I manually change the stroke color through devtools it works fine.
I do notice that when I use an object to load an svg I get #document
item in the inspector. Does that have any effect on why my color isn't changing when I mouse over the image?
<li class="nav-item">
<a href="">
<object data="/images/icon.svg"></object>
</a>
</li>
.nav-item {
svg:hover {
path {
stroke: #da25e7;
}
}
}