React-color: Give Alpha component a direction option

Created on 19 May 2016  路  8Comments  路  Source: casesandberg/react-color

The Hue component allows a direction to be set, either horizontal or vertical.

It would be nice for the Alpha component to also have this ability.

I don't mind digging into this and preparing a PR, probably next week at the earliest.

Thoughts?

help wanted

Most helpful comment

Well, me experimenting was interesting! I barely scratched the surface anyway. Great job @casesandberg 馃憤

screen shot 2016-11-19 at 9 00 00 pm

All 8 comments

I would appreciate it 馃帺

Awesome. I'll be able to look into this in 1 or 2 weeks 馃憤

@jakedeichert Have you had a chance to look into this?

@casesandberg I actually got sidetracked a few months ago and unfortunately didn't find time to look into this further.

I'd still like to contribute though! Thanks for reminding me about this. Wednesday/Thursday/Friday I think I have time after work to start digging into this.

How about I comment back here later this week to let you know if I start working on it?

@jakedeichert @casesandberg Did you engaged in the direction for the component alpha? Because I need this functionality urgently.
If I do it myself, is there enough to move and rewrite code similar to helper "Hue"?
https://github.com/casesandberg/react-color/blob/master/src/helpers/hue.js -> https://github.com/casesandberg/react-color/blob/master/src/helpers/alpha.js

@maximzah I did not begin this yet. If you want, you can do this since you need it done fast. Not sure what the release cycle is like regarding how fast it could get pushed out.

Otherwise, I'll checkout the code tomorrow and take a look. I just started a new job this week :) pretty hectic but I think I have time.

This is live in [email protected]

<AlphaPicker direction="vertical" />
// or
<Alpha direction="vertical" />

Well, me experimenting was interesting! I barely scratched the surface anyway. Great job @casesandberg 馃憤

screen shot 2016-11-19 at 9 00 00 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

louh picture louh  路  4Comments

japgolly picture japgolly  路  5Comments

louh picture louh  路  4Comments

imsheng picture imsheng  路  6Comments

foreverpinetree picture foreverpinetree  路  3Comments