Answer the question
In order to leave comments, you need to log in
How to change the color of an external SVG?
Hello. There is a button with text and an svg image inside. SVG is external, I don't want to insert it inline. Porridge in jsx will work.
It is necessary to make the picture turn white when the button is disabled. There were no problems with inline SVG, I got to the path selector and made it fill: #fff
. But importing this picture - I don’t know what to do .. <embed>
it didn’t help (although I might not have used it that way).
Answer the question
In order to leave comments, you need to log in
What's the problem with using something like svg-sprite-loader and forgetting about the problem? Today you need to add one icon, and tomorrow there may be 10.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question