M
M
MashutaKlencheva2022-02-27 13:33:30
css
MashutaKlencheva, 2022-02-27 13:33:30

Fill svg with fill property?

Situation: there is a button that contains the svg code. I need to change the value of the fill attribute, which is not in the path - by hover on the parent button, fill the fill with a different color. At the same time, another fill is also filled. Tell me how to do it? It is necessary exactly according to the hover on the button.

I'm attaching the codepen.
https://codepen.io/mashutaklencheva/pen/ZEaqzWx?ed...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
honeydrums, 2022-02-27
@MashutaKlencheva

Hello! The answer to your question lies in the question itself: refer directly to the svg on button hover .tooltip-btn:hover .tooltip-icon, not all paths

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question