Sass announced there will be some upcoming breaking changes to the syntax in mixed declarations. As of Sass 1.77.7 I’m getting the following warnings when compiling. –
Sass’s behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in& {}
.
I’m trying to find a decent work around that doesn’t involve adding & {} to every rule with @mixin declared at the top of the style or locking the version. I have a number of projects at varying sizes so it’s too time consuming to go through each and update. Has anyone had some luck at finding a way to update efficiently?
j-carr is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.