Skip to content

Commit

Permalink
fix: replace fontawesome component with iconify fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisbeth Berg committed Mar 14, 2024
1 parent cfb9641 commit e02ba97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
},
"homepage": "https://github.com/ElderAS/vue-elder-stepper#readme",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.27",
"@fortawesome/free-solid-svg-icons": "^5.12.1",
"@fortawesome/vue-fontawesome": "^0.1.9"
"@kvass/vue2-icon": "^1.0.2"
},
"devDependencies": {
"cz-conventional-changelog": "^2.1.0",
Expand All @@ -39,4 +37,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
9 changes: 4 additions & 5 deletions src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="elder-stepper">
<div class="elder-stepper__breadcrumbs">
<template v-for="(item, index) in value">
<FontAwesomeIcon
<Icon
v-if="index > 0"
class="elder-stepper__breadcrumb-arrow"
:icon="icon"
Expand All @@ -27,7 +27,7 @@
@click="state.set(item.id)"
>
<span class="elder-stepper__breadcrumb-icon">
<FontAwesomeIcon v-if="item.icon" :icon="item.icon" size="sm" />
<Icon v-if="item.icon" :icon="item.icon" size="sm" />
<template v-else>{{ index + 1 }}</template>
</span>
<span>{{ item.label }}</span>
Expand Down Expand Up @@ -120,11 +120,10 @@
icon,
}
*/
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import Icon from '@kvass/vue2-icon/src/Legacy'
import { iconBinding } from './utils'
import { Options } from '../index'
import States from './states'
import './icons'
export default {
props: {
Expand Down Expand Up @@ -190,7 +189,7 @@ export default {
},
},
components: {
FontAwesomeIcon,
Icon,
},
}
</script>
Expand Down
4 changes: 0 additions & 4 deletions src/icons.js

This file was deleted.

0 comments on commit e02ba97

Please sign in to comment.