Skip to content

Commit be325f3

Browse files
fix(Icon): handle collections with multiple dashes for i- (#116)
Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 7db185c commit be325f3

File tree

7 files changed

+235
-764
lines changed

7 files changed

+235
-764
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"release": "release-it"
2727
},
2828
"dependencies": {
29+
"@iconify/collections": "^1.0.351",
2930
"@iconify/vue": "^4.1.1",
3031
"@nuxt/kit": "^3.8.0"
3132
},

playground/app.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,24 @@
2626
</p>
2727
<p>
2828
CSS:
29-
<IconCSS name="i-uil-github" />
3029
<IconCSS name="uil:github" size="24" />
3130
<IconCSS name="uil:github" size="48" />
3231
<IconCSS name="nuxt" size="48" style="color: #00DC82;" />
3332
</p>
33+
<p>
34+
`i-` syntax:
35+
<Icon name="i-fluent-emoji-high-contrast-1st-place-medal" />
36+
<IconCSS name="i-fluent-emoji-high-contrast-1st-place-medal" />
37+
</p>
3438
<p>
3539
Failing:
3640
<Icon name="uil:bad">
3741
☀️
3842
</Icon>
3943
<Icon name="uil:bad" />
44+
<IconCSS name="uil:bad" />
45+
<Icon name="i-uil-bad" />
46+
<IconCSS name="i-uil-bad" />
4047
</p>
4148
</div>
4249
</template>

0 commit comments

Comments
 (0)