Skip to content

Commit

Permalink
Add fontWeight while we're at it
Browse files Browse the repository at this point in the history
  • Loading branch information
stakes authored Aug 10, 2017
1 parent 5534805 commit 5f0efc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions input.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class exports.Input extends Layer
options.autofocus ?= false
options.textColor ?= "#000"
options.fontFamily ?= "-apple-system"
options.fontWeight ?= "500"

super options

Expand All @@ -121,6 +122,7 @@ class exports.Input extends Layer
@input.style.padding = _inputStyle["padding"](@)
@input.style.fontFamily = options.fontFamily
@input.style.color = options.textColor
@input.style.fontWeight = options.fontWeight

@input.value = options.text
@input.type = options.type
Expand Down

0 comments on commit 5f0efc2

Please sign in to comment.