Answer the question
In order to leave comments, you need to log in
How to put a different color on SVG in the li tag when hovering on li or a?
How to put a different color on SVG in the li tag when hovering on li or a ?
Skeleton html structure:
<ul class="h_nav_list">
<li>
<!--'start_frame_cache_compare'-->
<a class="compare c-icon-count" href="/catalog/compare/">
<svg class="svg-icon c-icon-count__icon"><use xlink:href="#svg-24_compare"></use></svg>
<span class="js-compare-prod-count c-icon-count__quantity">0</span>
</a>
<!--'end_frame_cache_compare'--> </li>
</ul>
.h_nav_list li a svg:hover {fill: #9167C9;}
.h_nav_list li a:hover
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question