Closed (fixed)
Project:
Color Field
Version:
8.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2020 at 08:11 UTC
Updated:
3 Jul 2020 at 13:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sajid_007 commentedHi,
could you please provide steps to reproduce.
Comment #3
heavystoneheadinstall Drupal 8.9.0 (Standard Profile)
install Color Field 8.x-2.3
Add Color Field to Article (#123abc; 1) (/admin/structure/types/manage/article/fields)
Change Formartter to "Color boxes" (/admin/structure/types/manage/article/form-display)
you see right the default Colors: "#AC725E [... and so on ...] #A47AE2"
now change colors: "#ff0000,#00ff00,#0000ff" and update
the text change from "#AC725E [... and so on ...] #A47AE2" to "No default colors" and Save
Now you can see the default colors, not your custom colors in the field (/admin/structure/types/manage/article/fields/node.article.field_test_color_field) or (/node/add/article)
Comment #4
sajid_007 commentedHi,
Here is the patch.
Note- "When you change the color in form-display in "color boxes" always use "#FF0000" instead of "#ff0000".
Please review the patch.
Comment #5
nickdickinsonwildeWill take a real look later, but setting to NR to trigger the test bot, thanks for the report/details and patch you two.
Comment #6
nchristensen commented#4 worked for me (running core 8.9.0; color_field 8.x-2.3)
Comment #7
heavystonehead#4 Works for me
@sajid_007 thx for patch and Note.
Note: the unfixed Version transform the letter to lowercase. The new Version Works only with upercase.
Comment #8
sajid_007 commentedComment #10
hussainwebI'm confused. Was this fix committed? I don't see any commit. :/
Also, I'm thinking there are other improvements possible here. I think the biggest gap here is that during validate lowercase hex codes are fine. In fact, the validate converts it to lower case hexcode. However, when building summary and the form element, only uppercase is allowed.
Comment #11
heavystoneheadbasically the patch works. After the patch, he no longer converts the hex values to lower case. However, only hex values in capital letters are accepted in the input.
It would be better if all forms were accepted.
Comment #12
hussainweb@HeavyStoneHead, since this issue was closed, I created another one at #3156520: Color Boxes - can't change colors. The patch in there works perfectly for me and also accepts mixed-case input.