Need help calling color picker using onclick on a span. #124
-
So my task is to make color picker work on Mac OS and Safari iPhone. Also I should mention that the default input field ain't working. Pls help, I love your solution |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Coloris does not support attaching the color picker to a span. It has to be an input field, which you can style to make it look like anything you want with CSS.
Can you explain what doesn't work exactly? Can you share the code you use? |
Beta Was this translation helpful? Give feedback.
Can't share the code because of NDA. But I fixed default color picker with 4 lines of code.
The thing was that the color type input field on iphone and mac can't be 'display:none;' or 0 sizes. So the solution was to make it work, and that solution is:
display: block !important; opacity: 0 !important; visibility: hidden !important; position: absolute !important;