You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's just not easy to define a list with one list as value in sass. I would go for $list: append((),(2 1)), but yeah, that's just something you got to know. Maybe we should switch to sass maps instead of lists? Something like this:
Hi @martinbean, this is related to your comment on #25894. It's not easy to define a sass list with one item. The most straightforward method is $embed-responsive-aspect-ratios: append((), (4 3)) I guess.
We'll probably change this in v5 and will use sass maps like ysds describes above.
But I think we'll also need to add a notice about this in our docs for v4 since it seems a lot of people are having troubles with this.
Activity
pcodedviral commentedon Jan 23, 2019
hello @ysds
you can not add single value in list variable
plz use multiple list values
ysds commentedon Jan 23, 2019
Yeah, I understand the usage of the Sass list. This is not a question but a issue report about the documents or SCSS.
MartijnCuppens commentedon Jan 27, 2019
It's just not easy to define a list with one list as value in sass. I would go for
$list: append((),(2 1)), but yeah, that's just something you got to know. Maybe we should switch to sass maps instead of lists? Something like this:This would be a breaking change
What do you think about that, @ysds?
ysds commentedon Jan 29, 2019
I prefer to use sass map for v5, because it can create semantic class names and can use a number containing a decimal separator. e.g.:
MartijnCuppens commentedon Feb 6, 2019
Hi @martinbean, this is related to your comment on #25894. It's not easy to define a sass list with one item. The most straightforward method is
$embed-responsive-aspect-ratios: append((), (4 3))I guess.We'll probably change this in
v5and will use sass maps like ysds describes above.But I think we'll also need to add a notice about this in our docs for
v4since it seems a lot of people are having troubles with this.martinbean commentedon Feb 6, 2019
Wow. That is some clunky syntax but thanks for pointing me in the right direction, @MartijnCuppens.