Closed mueller-ma closed 1 year ago
It would help to add a parameter "fallback color" to functions that render a SVG.
... or make that fallback color part of the RenderOptions
.
You can pass some CSS with the RenderOptions. Does that not meet your needs?
Using CSS to set a value for currentColor
did it! 👍
If a svg doesn't contain any color information, it will be rendered in black. This can cause issues when the icon is used on a dark background as the color ratio is too low then.
Example:
Here's another icon without color information:
The icons in this app are user defined, so it's not possible for me to add an color to them. It would help to add a parameter "fallback color" to functions that render a SVG.