Skip to content

Commit

Permalink
feat: use rem instead of pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Jul 2, 2024
1 parent 0cbdd74 commit d01eb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PhosphorIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const props = defineProps({
size: {
type: String,
required: false,
default: '1.4em'
default: '1.25rem'
},
variant: {
type: String,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit d01eb85

Please sign in to comment.