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

Issue with NuxtIcon color param #729

Open
5 of 6 tasks
dimitrileduc opened this issue Jun 4, 2024 · 1 comment
Open
5 of 6 tasks

Issue with NuxtIcon color param #729

dimitrileduc opened this issue Jun 4, 2024 · 1 comment
Labels
to triage This issue needs to be triaged

Comments

@dimitrileduc
Copy link

dimitrileduc commented Jun 4, 2024

Describe the bug

Hello,

I am currently trying to use NuxtIcon in a Histoire story, but I am encountering an issue with the color not being rendered correctly.

When I use the NuxtIcon in my app.vue file, the red color is rendered correctly:

<Icon name="heroicons:check-16-solid" size="40px" color="red" />

However, when I try to use the same code in a Histoire story, the color is rendered as black:
I have inspected the rendered SVG in the browser and it shows that the color is set to "currentColor", which should be red

Has anyone else encountered this issue before? Any help would be greatly appreciated.

Thank you in advance.

Reproduction

System Info

Nuxt3 - Tailwind

Used Package Manager

pnpm

Validations

@dimitrileduc dimitrileduc added the to triage This issue needs to be triaged label Jun 4, 2024
@awacode21
Copy link

awacode21 commented Jul 22, 2024

How did you managed to render https://nuxt.com/modules/icon in histoire? I ask because i am running into this issue: #746 and it seems you already solved it when you are on the next step trying to color the icons. Help would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants