bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 589 forks source link

Wish: add colorpicker dropdown with visible color history #504

Open jensb opened 6 years ago

jensb commented 6 years ago

I would like to have a colorpicker which acts as a dropdown (like now) but also shows not just the active color, but also a (dynamic) list of recently used or custom colors next to the active color, depending on the available width of the element (possibly up to a certain max-width CSS value). Clicking any color will select this color without needing to open the dropdown form; clicking the down arrow will open the full color selector. This makes it easier (saves one click) to select recent colors and makes better use of screen real estate if a dynamic width is available.

What do you think?

EdwinChua commented 6 years ago

Have you seen this? https://bgrins.github.io/spectrum/#options-maxSelectionSize

It's not dynamic, and you have to open the picker to see the history though