You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cchaos Looking at the TSVB color picker, it changes its input to rgba when opacity < 1.
Do we want to open the EUI input to accept rgba, also, or keep it limited to hex (returning 8-digit values when opacity < 1)?
Based on their usage, it looks like the input might not even be in use when changing to EUI (might be a swatch button instead of the input)
We'd probably have to use the inline version with an extra input they way the color stops popover does.
As to the hex vs rgba values, that's a good question. I assume most users would understand the alpha channel but not that adding 2 extra digits to a hex alters the opacity. However, I think supporting both complicates the component quite a bit.
Perhaps instead of just a single slider for opacity, there's also a small input to adjust the opacity value. Something like:
Activity
thompsongl commentedon Jan 29, 2020
@cchaos Looking at the TSVB color picker, it changes its input to rgba when opacity < 1.
Do we want to open the EUI input to accept rgba, also, or keep it limited to hex (returning 8-digit values when opacity < 1)?
Based on their usage, it looks like the input might not even be in use when changing to EUI (might be a swatch button instead of the input)
cchaos commentedon Jan 30, 2020
We'd probably have to use the inline version with an extra input they way the color stops popover does.
As to the hex vs rgba values, that's a good question. I assume most users would understand the alpha channel but not that adding 2 extra digits to a hex alters the opacity. However, I think supporting both complicates the component quite a bit.
Perhaps instead of just a single slider for opacity, there's also a small input to adjust the opacity value. Something like:
thompsongl commentedon Feb 3, 2020
Ok. In this case we could treat alpha (or full rgba) as a second return value, which would allow consumers to handle it however they want.
Also, @snide brought up the point that 8-digit hex values aren't supported in CSS in IE11 (and Edge), which I verified.
thompsongl commentedon Feb 4, 2020
I think I like the decimal representation better. The return value for
onChangewill probably be in decimal format regardless.cchaos commentedon Feb 4, 2020
I think showing it as a percentage is more universally understood than decimal. Since the decimal notation is essentially a fraction.
nreese commentedon Feb 9, 2020
Are there plans to provide a property to opt out of showing the opacity input?
snide commentedon Feb 9, 2020
It should be off by default. This is an optional feature.
thompsongl commentedon Mar 12, 2020
#2850 introduced opacity support
#3055 is a continuation of this, which would add new layout option and probably require a refactor/simplification of the
EuiColorStopscomponent