skip to Main Content

Html – SVG 'color' property not taking precedence over generic CSS 'color' property

:root { --logo-color: red; --text-color: blue; } * { color: var(--text-color) } .logo{ color: var(--logo-color); } <svg class="logo" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="12" cy="5" r="3" /> <line x1="12" y1="22" x2="12"…

VIEW QUESTION

Css – Expand arrow SVG

I have arrow created in svg and I display it in my html. <svg xmlns="http://www.w3.org/2000/svg" width="28" height="8" viewBox="0 0 28 18"> <g id="Group1" data-name="Group1" transform="translate(28.321 -0.144) rotate(90)"> <rect id="Rectangle_1107" data-name="Rectangle 1107" width="5" height="22" transform="translate(6.144 6.321)" fill="#000000"/> <path id="Pol_1" data-name="Pol 1"…

VIEW QUESTION
Back To Top
Search