symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony

Home Page:https://ux.symfony.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Icons] Width / Height error when using an icon

alexz707 opened this issue · comments

Hi!
I've just installed the bundle and tried it out.
So far the 2 icons below are working fine.

<twig:UX:Icon name="flowbite:user-solid" class="w-6 h-6"/>
<twig:UX:Icon name="tabler:sun" class="w-6 h-6"/>

If I try to use a heroicon the following error appears:

<twig:UX:Icon name="heroicons:sun" class="w-6 h-6"/>

Error rendering "UX:Icon" component: The icon "heroicons:sun" does not have a width or height.

I've tried it with another icon (heroicons:sun-solid) and the same error appears.
Seems to me as there is something wrong with the heroicons?

Best regards
Alex

Thanks i'll look at it this week-end.

@alexz707 thanks for having reported this! This will be released in the next week or two

Thanks for the fast fix :)