csstools / csstools/postcss-advanced-variables
$counter in @each statement not working
Open
- Dominant language
- JavaScript
- Stars
- 144
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
I am not getting this statement to work. Using your example:
`@each $animal $i in (puma, sea-slug, egret, salamander) {
.$(animal)-icon {
background-image: url("images/icon-$(i).svg");
}
}`
The CSS that is returned when I include the counter($i) looks like this:
`.$(animal)-icon {
background-image: url("images/icon-$i.svg");
}`
If I remove the counter, the statement proceeds as expected.
Contributor guide
Assessment
This issue has not been assessed yet.