-
Notifications
You must be signed in to change notification settings - Fork 0
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
[color-picker] Alpha #57
Comments
But we still need a way to add the alpha channel, right? We probably don’t want authors to specify all channels to simply enable alpha. Something like |
Not sure if
Oooh that’s a good point. It may be trivial to specify them for static spaces, but it becomes quite a hassle when the color space is dynamic. I'm trying to avoid introducing error conditions, and having two attributes that need to be in sync creates an error condition. I can see two solutions:
|
Already done in #63. :) |
<color-picker>
should optionally support alpha (see https://colorjs.io/apps/picker/ )We could have a boolean
alpha
property for that.If the picker color includes alpha, but
this.alpha === false
, the generated color would just continue having that alpha.Though, we can kill two birds with one stone and have a
sliders
orshow
property that controls all sliders shown and their order. E.g.show="l, c, h, alpha"
.In the future it could even be extended to include sliders from other color spaces, like sliders="oklch.h, lch.c, hsl.l", though not sure whether there are use cases for that. But the syntax can support it if use cases arise!
The text was updated successfully, but these errors were encountered: