Skip to content
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

Use chroma-js color methods in EuiColorPicker #2805

Merged
merged 5 commits into from
Feb 4, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Jan 30, 2020

Summary

In preparation for #2629, this PR converts EuiColorPicker color parsing and conversion methods from custom functions to chroma-js methods.

Which color formats will be supported by EuiColorPicker in the near- and far-term is TBD, but, at the very least, alpha channel support is required (8-digit hex or RGBa).

See also: #2804

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile

  • Checked in IE11 and Firefox

- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests

  • Checked for breaking changes and labeled appropriately

- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't completely follow the JS, but the color picker still worked and didn't error out on me.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One very small nit, otherwise LGTM; pulled and tested locally

src/components/color_picker/color_picker.tsx Outdated Show resolved Hide resolved
@thompsongl thompsongl merged commit 02b6069 into elastic:master Feb 4, 2020
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.

3 participants