Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render custom SVG icons as <svg> instead of <img> #191

Open
m-p-3 opened this issue May 14, 2024 · 1 comment
Open

Render custom SVG icons as <svg> instead of <img> #191

m-p-3 opened this issue May 14, 2024 · 1 comment

Comments

@m-p-3
Copy link

m-p-3 commented May 14, 2024

Hi, I'm trying to make some custom icons that follow the default color scheme used for monochrome icons and I'm not sure how I can achieve it.

I tried modifying the fill color of the path to fill="currentColor" like the other monochrome icons in the repo, as I guessed the css would take care of it that way but that doesn't seem to be the case. Is that something doable?

@OlegWock
Copy link
Owner

I'm afraid it's not possible currently. Anori uses <img> tag for all custom icons (incl. svg) and it doesn't work with currentColor. I'll see if it's possible to render them as <svg> without major changes

@OlegWock OlegWock changed the title [Question] About custom SVG icon color scheme Render custom SVG icons as <svg> instead of <img> May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants