nuxt / icon

The <Icon> component, supporting Iconify, Emojis and custom components.
https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue
MIT License
874 stars 38 forks source link

size not effective when use v-if #81

Closed transtone closed 1 year ago

transtone commented 1 year ago
<Icon name="uil:github"  v-if="true" />
<template v-if="true">
    <Icon name="uil:github"  />
</template>

when use Icon with v-if, the whole icon become tiny samll.

transtone commented 1 year ago

not reproduct in starter nuxt. just watching

Atinux commented 1 year ago

A reproduction will help

transtone commented 1 year ago

Add a span solve the problem.

<template v-if="true">
    <span><Icon name="uil:github"  /></span>
</template>

but when try to reproduction it in https://stackblitz.com/edit/nuxt-icon-playground?file=app.vue , I can't reproduction it!