@markup-mitchell
Posted
Hi Emmilie,
Inline SVGs can be targeted and styled with CSS just like HTML elements so you shouldn't think of the way you've done it as a workaround!
Leaving properties like fill
in the SVG will override the CSS in the same way as an inline style will override CSS, so yes, that's the way to do it. You might want to make the SVG width and height 100% and define those properties in the CSS class as well, just so you're not hard-coding those values into the markup.
@emestabillo
Posted
@markup-mitchell Exactly the kind of answer I was looking for š Thanks so much!