-
-
Notifications
You must be signed in to change notification settings - Fork 2
[color-chart] First step in <channel-picker> integration
#170
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
Conversation
✅ Deploy Preview for color-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
7f70960 to
f272bf7
Compare
src/color-chart/color-chart.js
Outdated
| try { | ||
| return Self.Color.Space.resolveCoord(this.y, "oklch"); | ||
| } | ||
| catch { |
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.
Why do we have this new error condition? I don't understand why this is here based on the comment below.
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.
Thank you for this question! You are absolutely right: We shouldn't handle invalid values of y here. I moved the logic to another place. Could you please take a look and see if it's more correct now?
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.
LGTM, see question though
c745313 to
eeded87
Compare
eeded87 to
e93fa18
Compare
`<channel-picker>` is already integrated into charts (see #170)
`<channel-picker>` is already integrated into charts (see #170)
We need to tweak styles here depending on what base style of
<channel-picker>we choose (we might end up with this: #169). So, it's only the first step. The implemented logic will be the same regardless.Live preview: https://deploy-preview-170--color-elements.netlify.app/src/color-chart/