Skip to content

Commit

Permalink
feat(colors): allow plain color for ordinal scale
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Apr 23, 2019
1 parent fedf8df commit b8d3abb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/colors/src/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit b8d3abb

Please sign in to comment.