Open bweis opened 1 week ago
It appears that this might be done intentionally to standardize the coloring of SVGs via text rather than both stroke and fill.
It's sorta annoying and I'm not sure that I like it.
https://iconify.design/docs/articles/cleaning-up-icons/#palette
What version of
astro-icon
are you using?v1.1
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome, Safari
Describe the Bug
I would expect that applying something like:
would style the svg appropriately, however the color styles are not applied because somewhere in the processing of the svg the attribute
fill="currentColor"
was applied to the path. Is there a way to disable this? A workaround is to instead style it with text colors:However this is not really expected.
What's the expected result?
See above. I would expect the tailwind classes to function as they were written, not for some attributes to be magically applied.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-rex2ee?file=src%2Fpages%2Findex.astro