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

Cannot change color of icon using styling #216

Open
jamesmcl113 opened this issue Mar 28, 2024 · 1 comment
Open

Cannot change color of icon using styling #216

jamesmcl113 opened this issue Mar 28, 2024 · 1 comment

Comments

@jamesmcl113
Copy link

What version of astro-icon are you using?

v1.1.0

Astro Info

Astro                    v4.5.5
Node                     v21.7.1
System                   macOS (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             astro-icon

If this issue only occurs in one browser, which browser is a problem?

Firefox

Describe the Bug

I'm using the standard styling instructions but the color of the svg is not changing. I can see that the style is being applied using the inspector.

What's the expected result?

The icon should change color.

Link to Minimal Reproducible Example

https://github.com/natemoo-re/astro-icon?tab=readme-ov-file#styling

@lindakatcodes
Copy link

Are you using fill or color in the CSS? I noticed after upgrade to a v1 version I had to switch to use color instead, and it seems to be working for me. Just in case it helps!

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