Skip to content

Commit

Permalink
fix(VIcon): add missing x-small prop functionality
Browse files Browse the repository at this point in the history
fixes #7873
  • Loading branch information
johnleider committed Jul 20, 2019
1 parent 9566d4d commit 9b77c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VIcon/VIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import mixins from '../../util/mixins'
import { VuetifyIcon, VuetifyIconComponent } from 'vuetify/types/services/icons'

enum SIZE_MAP {
xSmall = '12px',
small = '16px',
default = '24px',
medium = '28px',
Expand Down Expand Up @@ -62,6 +63,7 @@ const VIcon = mixins(
},
getSize (): string | undefined {
const sizes = {
xSmall: this.xSmall,
small: this.small,
medium: this.medium,
large: this.large,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('VIcon', () => {

it('should render a mapped size', () => {
const SIZE_MAP = {
xSmall: '12px',
small: '16px',
large: '36px',
xLarge: '40px',
Expand Down

0 comments on commit 9b77c73

Please sign in to comment.