-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for multiple color schemes #3295
Allow for multiple color schemes #3295
Conversation
1. create ColorSchemeControl component 2. using the same new control component for linear colors
1 similar comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few very minor nits but otherwise this looks solid!
return ( | ||
<div> | ||
<ControlHeader {...this.props} /> | ||
{selectWrap} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not sure what the value of the selectWrap
is, you could just have the <Creatable
here
autosize: false, | ||
clearable: false, | ||
onChange: this.onChange, | ||
optionRenderer: opt => this.optionRender(opt.value), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: if optionRender
expected to receive and option, you could just optionRenderer: this. optionRender
here. Also nit could rename to renderOption
or optionRenderer
for #3258