Skip to content

Conversation

@tordans
Copy link

@tordans tordans commented Apr 14, 2021

This clarifies how to customise the styles.

It took me a while to figure out I need to add default to the styles hash. The styles example from https://casesandberg.github.io/react-color/#create-helpers EditableInput does not use the default hash. And the example at https://github.com/casesandberg/react-color/blob/master/docs/documentation/03.05-customStyles.md is not rendered at https://casesandberg.github.io/react-color/.

This clarifies how to customise the styles.

It took me a while to figure out I need to add `default` to the styles hash. The styles example from https://casesandberg.github.io/react-color/#create-helpers `EditableInput` does not use the `default` hash. And the example at https://github.com/casesandberg/react-color/blob/master/docs/documentation/03.05-customStyles.md is not rendered at https://casesandberg.github.io/react-color/.
tordans added a commit to tordans/react-color that referenced this pull request Apr 14, 2021
The page https://github.com/casesandberg/react-color/blob/master/docs/documentation/03.05-customStyles.md is ideal to explain how to customise styles but is missing from https://casesandberg.github.io/react-color/#api. 

Adding this will also resolve the need to document the styles props individually at casesandberg#816
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.

1 participant