I added a color field in a custom module so that the user could pick the border color. However, it is not displaying the hex code selected in the rendered html.
Within the html section of the module, I have the following inline style on a li element that's within a repeatable group-
style="20px solid {{ item.border_clr.color }};"
I get a warning that states "cannot resolve property 'color' in '{{ item.border_clr }}'
I can't figure out what I am doing wrong. Any help would be appreciated.
Update - This issue is resolved now. Not sure what caused it to start working except maybe getting the warning corrected and some trial and error. Once I rekeyed the colors on the edit page, it started working.
Update - This issue is resolved now. Not sure what caused it to start working except maybe getting the warning corrected and some trial and error. Once I rekeyed the colors on the edit page, it started working.
would you be willing to add the full for loop block?
And if you are using the Design Manager, a screenshot of the Module Group with the repeater. If you are using local dev, could you add the Module Repeater json.
From the outside, your code looks good. you could also try adding the {{ subject.border_clr.color }} outside of the for loop and again, in the for loop outside of the style so it should print the value on the screen.