From 7a69daeda378e8d593b2d2c3ebcb0fbacfc4fbac Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Wed, 3 Jun 2015 14:14:58 +0200 Subject: [PATCH] Fixed bug causing color in styles not to be respected. --- lib/create-icon-set.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/create-icon-set.js b/lib/create-icon-set.js index 787db2d..09430d4 100644 --- a/lib/create-icon-set.js +++ b/lib/create-icon-set.js @@ -63,10 +63,12 @@ function createIconSet(glyphMap, fontFamily) { ); var size = this.props.size || textStyle.fontSize || DEFAULT_ICON_SIZE; + var color = this.props.color || textStyle.color || DEFAULT_ICON_COLOR; + textStyle.fontSize = size; textStyle.lineHeight = size; textStyle.height = size; - textStyle.color = this.props.color || DEFAULT_ICON_COLOR; + textStyle.color = color; return (