Permalink
Browse files

fix(button): allow custom size classes to be passed to the size prop (#…

…1389)

* fix(button): allow custom size classes to be passed to the size prop

Removed the validator for the size prop, so that people can use custom `.btn-{size}` classes

* remove import of arrayIncludes

no longer needed with removal of validator
  • Loading branch information...
tmorehouse authored and pi0 committed Nov 22, 2017
1 parent e436a1d commit 41a46b28ef4ff184ca5d198c06b43e8e820f488c
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/components/button/button.js
@@ -1,5 +1,5 @@
import { mergeData, pluckProps } from '../../utils'
import { arrayIncludes, concat } from '../../utils/array'
import { concat } from '../../utils/array'
import { assign, keys } from '../../utils/object'
import { addClass, removeClass } from '../../utils/dom'
import Link, { propsFactory as linkPropsFactory } from '../link/link'
@@ -15,8 +15,7 @@ const btnProps = {
},
size: {
type: String,
default: null,
validator: size => arrayIncludes(['sm', '', 'lg'], size)
default: null
},
variant: {
type: String,

0 comments on commit 41a46b2

Please sign in to comment.