PitPik / colorPicker

Advanced javaScript color picker and color conversion / calculation (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)
http://www.dematte.at/colorPicker/
MIT License
570 stars 136 forks source link

Z-index of color picker in javascript implementation #9

Closed Martin1887 closed 9 years ago

Martin1887 commented 9 years ago

Color picker can be hidden by other elements because it hasn't z-index CSS property. This can be easily resolved adding this rule to line 12 of index.css :):

.cp-app { position: relative; float: left; margin: 10px 0 0 10px; z-index: 15000; }

PitPik commented 9 years ago

Yes, that's true. I could also put a z-index value in the initial CSS, but I decided to leave this up to the developer who uses this tool. Also where to append the colorPicker is up to the developer. Neither the js-implementation nor the jq-implementation is a state of the art work. Both are actually just a jump start to show how to implement ColorPicker in you project. It is meant to be tweaked and changed...