Skip to content

Commit

Permalink
Adds a font size property to the switch. (#77)
Browse files Browse the repository at this point in the history
* Adds a font size property to the switch.

* Update Button.vue
  • Loading branch information
xon52 authored and euvl committed Dec 11, 2018
1 parent 953ec3c commit b81603f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default {
width: {
type: Number,
default: constants.width
},
fontSize: {
type: Number
}
},
computed: {
Expand Down Expand Up @@ -149,7 +152,8 @@ export default {
labelStyle () {
return {
lineHeight: px(this.height)
lineHeight: px(this.height),
fontSize: this.fontSize ? px(this.fontSize) : null
}
},
Expand Down

0 comments on commit b81603f

Please sign in to comment.