-
-
Notifications
You must be signed in to change notification settings - Fork 780
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
fix(preset-icons): support icon name contains _
#2482
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
_
_
_
_
Head branch was pushed to by a user without write access
The latest version <i class="i-gitlab-svgs-template"></i>
<i class="i-gitlab-svgs-status_running"></i> The configuration: presetIcons({
cdn: 'https://esm.sh/',
warn: true,
extraProperties: {
display: 'inline-block'
},
collections: {
'gitlab-svgs': async (name: string) => {
// preview https://gitlab-org.gitlab.io/gitlab-svgs/
return $fetch(`https://cdn.jsdelivr.net/gh/mokeyish/gitlab-svgs-o@v3.3.0/icons/sprite_icons/${name}.svg`, { responseType: 'text' });
}
}
}) |
@mokeyish try render it without color: |
Thank you very much. It solved. |
Icon names that contain underscores cannot be recognized. such as
i-xx-a_b
.