Skip to content

Commit

Permalink
fix(plugin-icon): fix iconfont style
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 9, 2025
1 parent 6c4332f commit f1e0fe8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const VPIcon = defineComponent({
})
}

return h('span', {
return h('i', {
key: icon,
class: [
'vp-icon',
Expand Down
5 changes: 5 additions & 0 deletions plugins/features/plugin-icon/src/client/styles/vp-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
width: 1em;
height: 1em;

&:is(i) {
font-size: 1em;
line-height: 1;
}

&:not(iconify-icon, i) {
vertical-align: -0.125em;
}
Expand Down

0 comments on commit f1e0fe8

Please sign in to comment.