i’m trying to access a list setting in yml file with an @each SCSS operator but cannot get it to work for more than one list entry. the code works as expected with default “” or one item in list, but not for more.
settings.yml:
list_setting:
type: list
default: ""
description: "a list setting"
scss:
@each $setting in $list_setting {
some css formating code with each $setting here;
}
this seems like it should be somewhat straightforward, but as soon as i add more than one entry to the list, it stops working but no errors.
I didn’t test it, but I think list settings are delimited by pipes |.
It might be possible that $setting in your CSS equals something|something_else|etc. You could output the value in some CSS attribute (or JS, the value should be the same) to be sure.
yea i was just thinking about this and wondering if i have to split those list values out with some script? i suspect it is treating multiple list items as one string.