From b8d3abb4bd86398193b988cc30dd98feaf365be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Benitte?= Date: Wed, 24 Apr 2019 00:44:38 +0900 Subject: [PATCH] feat(colors): allow plain color for ordinal scale --- packages/colors/src/props.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/colors/src/props.js b/packages/colors/src/props.js index 7215bfa47..6477e0019 100644 --- a/packages/colors/src/props.js +++ b/packages/colors/src/props.js @@ -19,6 +19,7 @@ export const ordinalColorsPropType = PropTypes.oneOfType([ PropTypes.shape({ datum: PropTypes.string.isRequired, }), + PropTypes.string, ]) export const colorPropertyAccessorPropType = PropTypes.oneOfType([PropTypes.func, PropTypes.string])