Closed itpropro closed 4 weeks ago
Any idea @antfu ?
Unfortunately, I think with Nuxt Icon's approach (think them more like an image DOM), it's not really feasible to do what UnoCSS is able to do - in that case I would recommend you to use Uno, or you have to use a bit JavaScript or hover:hidden
to change the icon.
Unfortunately, I think with Nuxt Icon's approach (think them more like an image DOM), it's not really feasible to do what UnoCSS is able to do - in that case I would recommend you to use Uno, or you have to use a bit JavaScript or
hover:hidden
to change the icon.
Thanks for the reply! I am unfortunately locked into NuxtIcon by Nuxt UI. Would be great if Nuxt UI would have support for UnoCSS, but it's all Tailwind. I will then have to use JS for that.
With UnoCSS, I could do this if I want to change the icon on hover
What is the recommended way to do this with native CSS and NuxtIcon? These variants are all a bit much and don't really work well
This avoids group, as there can already be a group class somewhere up the hierarchy.
I would also like to avoid JS (same with
:name
)