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
While reviewing a PR from a colleague, I discovered that configuring a private variable of a module works, which quite surprised me (I first wanted to post review comments saying this was broken, but our CI proved me wrong as it managed to build the CSS).
// _a.scss$_separator-size: 8px!default;
a {
gap: $_separator-size;
}
Looking at sass-spec, this is not covered by any tests, so I'm not sure it is intended to allow private members to be configurable. If it is intended, I would suggest adding tests in sass-spec (I could contribute them btw). Otherwise, this might deserve a deprecation.
I think this should be an error, since it violates the principle that within a module $-foo is a strictly local identifier. We should deprecate both passing it and declaring !default on a private variable name.
Uh oh!
There was an error while loading. Please reload this page.
While reviewing a PR from a colleague, I discovered that configuring a private variable of a module works, which quite surprised me (I first wanted to post review comments saying this was broken, but our CI proved me wrong as it managed to build the CSS).
Looking at sass-spec, this is not covered by any tests, so I'm not sure it is intended to allow private members to be configurable. If it is intended, I would suggest adding tests in sass-spec (I could contribute them btw). Otherwise, this might deserve a deprecation.
Solution
Phase 1
Phase 2
The text was updated successfully, but these errors were encountered: