diff --git a/src/client/theme-default/components/VPIcon.vue b/src/client/theme-default/components/VPIcon.vue index 57cd1dcd..0e7983e8 100644 --- a/src/client/theme-default/components/VPIcon.vue +++ b/src/client/theme-default/components/VPIcon.vue @@ -3,11 +3,6 @@ import { useIcon } from 'vitepress' import { useTemplateRef } from 'vue' const props = defineProps<{ - /** - * A fully qualified `collection:name` for any `@iconify-json/*` - * collection in the project's dependencies (e.g. `simple-icons:github`, - * `lucide:rocket`), or a raw `{ svg }` string. - */ icon: string | { svg: string } }>() diff --git a/src/client/theme-default/components/VPSocialLink.vue b/src/client/theme-default/components/VPSocialLink.vue index d77a2a1a..420ebca8 100644 --- a/src/client/theme-default/components/VPSocialLink.vue +++ b/src/client/theme-default/components/VPSocialLink.vue @@ -1,9 +1,9 @@ @@ -34,8 +28,7 @@ const iconClass = useIcon( :target="target ?? (isExternal(link) ? '_blank' : undefined)" :rel="me ? 'me noopener' : 'noopener'" > - - + @@ -58,12 +51,11 @@ const iconClass = useIcon( .VPSocialLink > :deep(span) { /* keeps a nested custom svg centered instead of baseline-aligned */ display: flex; -} - -.VPSocialLink :deep(svg), -.VPSocialLink > :deep([class^='vpi-']) { width: 1.25rem; height: 1.25rem; +} + +.VPSocialLink :deep(svg) { fill: currentColor; }