From d01eb85a5f70947fc845922aa8c00b76eed0397d Mon Sep 17 00:00:00 2001 From: Caroline Desprat Date: Tue, 2 Jul 2024 11:17:22 +0000 Subject: [PATCH] feat: use rem instead of pixels --- src/components/PhosphorIcon.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PhosphorIcon.vue b/src/components/PhosphorIcon.vue index dd507718a1..71842abe47 100644 --- a/src/components/PhosphorIcon.vue +++ b/src/components/PhosphorIcon.vue @@ -15,7 +15,7 @@ const props = defineProps({ size: { type: String, required: false, - default: '1.4em' + default: '1.25rem' }, variant: { type: String, @@ -44,7 +44,7 @@ const weights = { } function relativePathForIcon(name) { - const filename = name ? `Ph${upperFirst(camelCase(name))}` : 'PhCircleDashed' + const filename = `Ph${upperFirst(camelCase(name))}` return defineAsyncComponent(() => import(`../../node_modules/@phosphor-icons/vue/dist/icons/${filename}.vue.mjs`)) } const component = relativePathForIcon(props.name)