-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flat mode doesn't work #90
Comments
I wouldn't be opposed to making some changes to have the flat mode be more consistent. If you could explain your expected behavior / functionality especially for |
Sorry - I may have been wrong about the palette... This is what I had initially, and it worked: $("#colorPicker").spectrum({ When I added "flat: true":
I now understand your reasons, but I propose a documentation change on the "flat" parameter... |
Cool, I think it would be a good addition to put the choose button / chooseText back in on the flat colorpicker (possibly with the requirement that you explicitly set Adding some documentation about the differences between the two modes would be good too. As far as |
+1 for showButtons true and change event. |
I have been working on implementing this over on the issue90 branch. Here is a demo page: http://jsbin.com/asafur/3/edit. Can you try grabbing https://github.com/bgrins/spectrum/blob/issue90/spectrum.css and https://github.com/bgrins/spectrum/blob/issue90/spectrum.js and let me know if it works for you in your projects? Seems like palette and 'choose' button are working fine (I'm hiding the cancel button for now as it seems like the meaning of it is a little confusing on a flat picker). |
It works exactly like I need, thanks! As for cancel button, I don't need it absolutely but it really has it's meaning in some scenarios. In my case I'm opening page with flat picker with some selected color. When I try to pick some different color, I may need to return back to original one. Better name for button will be "reset" in this case but this we have already option to change. |
I am fine with leaving the cancel button in, then. We could provide instructions for how to hide it with CSS if needed. I am still wondering if we should make it so that |
I'm really not sure what is best approach. One things is to preserve current system (in flat default is not to shown buttons) and another thing is clearness for future. IMHO it is best to have same default for all modes and document this in changelog. |
@kepi I tend to agree with you after looking through the code and seeing the changes I would need to make in order to support the new behavior. Probably best to just stay consistent. |
http://jsfiddle.net/XEF6F/1/
Things that don't work:
and more...
The text was updated successfully, but these errors were encountered: