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 (