Answer the question
In order to leave comments, you need to log in
How to loop through classes in sass?
There are a number of buttons with the class "button"
To all of them, for example, add the name of the colors to get the following:
class="button--red"
class="button--blue"
class="button--green"
class ="button--white"
class="button--yellow"
And so on .
I think this is implemented in a loop, and the class names are taken from an array. But how do you write it down?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question