Skip to content

possibility to add costum presetColors to sketch template#50

Closed
vklein wants to merge 1 commit intocasesandberg:masterfrom
vklein:master
Closed

possibility to add costum presetColors to sketch template#50
vklein wants to merge 1 commit intocasesandberg:masterfrom
vklein:master

Conversation

@vklein
Copy link

@vklein vklein commented Oct 13, 2015

No description provided.

@casesandberg
Copy link
Owner

You can already use custom colors by passing them down via the presetColors prop

<ColorPicker type="sketch" presetColors={['#fff', '#333']} />

@vklein
Copy link
Author

vklein commented Oct 14, 2015

thank you for the fast response, but this doesn't work for me.
I had to change the color.js like i did in my pull request.
In color.js you are passing down just the state i think. React.createElement(Picker, _extends({}, this.state, { onChange: this.handleChange, onAccept: this.handleAccept, onCancel: this.handleCancel }))
Thats why i add the props.presetColors to state.

Maybe i am doing something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants