casesandberg / react-color

:art: Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
http://casesandberg.github.io/react-color/
MIT License
12.05k stars 922 forks source link

Github Picker is not taking into account the color parameter #824

Open dianab0 opened 3 years ago

dianab0 commented 3 years ago

Github Picker is not taking into account the color parameter but according to documentation it should be available for all the color pickers. I fixed this and added an example for it to the project.

Current behavior: after choosing a color and closing the color picker, when opening it again there is no active color: GithubPicker-Before

After fix: after choosing a color and closing the color picker, when opening it again the active color is shown: GithubPicker-After

Sjoerd-van-Hagen commented 3 years ago

Hi @casesandberg , could you have a look at this PR and hopefully merge it?