Hey Paul! What does it look like if you just try outputting that field on the front end without passing it as a sass variable? In other words, what does the <Field show_color_1 /> field contain?
Also, what is that type=raw attribute supposed to be doing? In the docs I’m seeing that you can use the type attribute to specify a post type in combination with either id or name to get the fields from a specific post (basically a shortcut instead of wrapping it in a Loop tag in instances where you’re not displaying fields from the current post) but raw seems like it’s probably not referring to a post type on your site, so my hunch is that you’re sorta inventing your own syntax there which might be your issue.
By default, the value is wrapped in “quotes” to create a string. Use the type attribute for other value types: number, color, list, map, and raw. (These all work the same by passing unquoted value.)
I think maybe I’m just misunderstanding how the Sass module works.
Right, that docs page is for the Set tag, but I meant when you used the type=raw inside the Field tag, like this: <Field show_color_1 type=raw />. I’m not seeing that in the documentation anywhere. Does removing that fix your issue? I also haven’t tested this out myself yet but if that doesn’t fix things, maybe try setting type=color on the Set tag to see if that works better. Let me know what you find!
Yeah I was just trying stuff out to see if I could get it to work. Removing the tag doesn’t work and neither does changing the type to color in the Set tag.
Hey Paul, I was able to test this a bit more thoroughly today and confirm that there seems to be some kind of bug there. I also tested the same template with version 2.4.4 and it worked as expected so it seems in the update to 3.x something must have gone awry. I’ve let the devs know and I’ll report back in this thread when it’s been resolved.