Make SVG component take color from css
Key changes:
if icon doesn't have <rect> elements:
Remove
fill="none"
from the<svg>
tag.Add
fill="currentColor"
to the<svg>
tag.
Remove the
fill
andfill-opacity
attributes from<path>
elements.
if I icon has <rect> elements:
Replace stroke="#..."
with stroke="currentColor"
in both the <path>
and <rect>
elements.