Reviewed & tested by the community
Project:
Canvas Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2013 at 17:05 UTC
Updated:
1 Jul 2013 at 20:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
lirantal commentedI can confirm the issue.
This happens because the color code is handed out to jQuery's .css() function which hopes to apply a full color code notation, such as "#FF0000" or "rgb()", yet the hex color code is provided without the hash prefix.
While the problem seems at first an issue to add the "#" prefix on hex colors notation due to the input field length limit of 6 characters, the workaround is simply to provide the hex color code short notation, i.e: "#F00".
Attached is a patch to fix the issue. It appends the hash prefix before it hands it out to jQuery's CSS.
Comment #2
lirantal commentedComment #3
mjross commentedThe patch worked. Thank you, Liran!