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
When you put a single map inside of a list, SASS somehow only grabs the first key/value pair as a list when you try to loop through it? Resulting in an error when you attempt a map-get function.
When you put multiple maps inside of a list it works as expected.
Parenthesis do not define a list with the exception of () defining an empty list. In all other cases, parenthesis are simply grouping of expressions. Lists are defined by their use of separators.
// parenthesis here are redundant$list: ($some-map);
// this is just simple assignment of a map to a variable named $list.$list: $some-map;
To define a list of a single element, you must have a trailing comma and it is often necessary to use parenthesis around that list to avoid that comma from changing the interpretation of the remaining expression.
// valid list of one element containing a map$list: $some-map, ;
// this is the same, but some find it more robust and aesthetically pleasing to keep the parenthesis.$list: ($some-map,) ;
When you put a single map inside of a list, SASS somehow only grabs the first key/value pair as a list when you try to loop through it? Resulting in an error when you attempt a map-get function.
When you put multiple maps inside of a list it works as expected.
Example here: http://codepen.io/Sector22/pen/PZPxPp?editors=010
The text was updated successfully, but these errors were encountered: