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

Stroke width not working for some Iconify icons #256

Closed
MisterMunchkin opened this issue Dec 1, 2024 · 1 comment
Closed

Stroke width not working for some Iconify icons #256

MisterMunchkin opened this issue Dec 1, 2024 · 1 comment

Comments

@MisterMunchkin
Copy link

What version of astro-icon are you using?

^1.1.4

Astro Info

> [email protected] astro
> astro info

Astro                    v4.16.13
Node                     v20.18.0
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/tailwind
                         @astrojs/mdx
                         @astrojs/react
                         astro-icon

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

No response

Describe the Bug

stroke-width is only set on the element, so some icons do not get the stroke-width explicitly set my the user.

What's the expected result?

stroke-width to work for any icon in iconify.

When doing something like:

<Icon name="line-md:github-loop" stroke-width={"0.5"} />

It will set the stroke-width on the element instead of the child element for github-loop.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/withastro-astro-c9smrf?file=src%2Fpages%2Findex.astro

@stramel
Copy link
Collaborator

stramel commented Dec 26, 2024

Duplicate of #49 and #211

@stramel stramel closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 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