javascript - React won't work with Hover styles on an SVG -


i made svg, hover style doesn't work when add svg <img> in react component

<?xml version="1.0" encoding="utf-8"?> <!-- generator: adobe illustrator 19.2.1, svg export plug-in . svg version: 6.00 build 0)  --> <svg version="1.1" id="layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"      viewbox="0 0 14 14" xml:space="preserve"> <style type="text/css">     .st0{stroke:#5c5c60;}     .st1{fill:#0081c3;}     .tickicon:hover .st0{stroke:#fff;} </style>     <g class="tickicon">         <circle class="st1" cx="5" cy="5" r="5 "/>         <line x1="1.5" y1="6" x2="3.5" y2="8"             stroke-width="0.5" class="st0"/>         <line x1="3.5" y1="8" x2="8.5" y2="3"             stroke-width="0.5" class="st0"/>     </g> </svg> 

the image still works not in react app


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -