diff --git a/packages/text/src/Text.js b/packages/text/src/Text.js index e86b682..e702d74 100644 --- a/packages/text/src/Text.js +++ b/packages/text/src/Text.js @@ -412,6 +412,10 @@ { return style.fill; } + else if (style.fill.length === 1) + { + return style.fill[0]; + } // the gradient will be evenly spaced out according to how large the array is. // ['#FF0000', '#00FF00', '#0000FF'] would created stops at 0.25, 0.5 and 0.75