How to override "currentcolor"? #218
Replies: 2 comments
-
|
You need to specify the class in path like this: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks for your response. I downloaded the icon from a website, so was hoping to avoid having to modify each one. I "resolved" my issue by finding another icon source that didn't have this, and I can set the color by doing David. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an SVG icon like so:
And some axaml like so:
This renders great - in black. I'd like to override or set the "currentcolor" so I can render it, for example, in white for a dark theme. Is it possible to do this?
I've tried a couple of things using the
Cssproperty, e.g.Css="svg { fill: #ffffff; }"with no luck. I'm not really familiar with how CSS and SVG play together.Any help appreciated!
This is a great library, by the way!
David.
Beta Was this translation helpful? Give feedback.
All reactions