Skip to content

Commit

Permalink
fix(VIcon): accept number as size
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Feb 17, 2021
1 parent 66e2574 commit 8a639c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vuetify/src/components/VIcon/VIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import './VIcon.sass'
import { computed, ComputedRef, defineComponent } from 'vue'
import { makeSizeProps, useSize } from '@/composables/size'
import { useIcon } from '@/composables/icons'
import { flattenFragments } from '@/util'
import { convertToUnit, flattenFragments } from '@/util'
import makeProps from '@/util/makeProps'

// Types
Expand Down Expand Up @@ -61,9 +61,9 @@ export default defineComponent({
},
]}
style={ !sizeClasses.value ? ({
'font-size': props.size,
width: props.size,
height: props.size,
fontSize: convertToUnit(props.size),
width: convertToUnit(props.size),
height: convertToUnit(props.size),
}) : undefined }
aria-hidden="true"
/>
Expand Down

0 comments on commit 8a639c1

Please sign in to comment.