Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should the new module system have a selector rewriting capability?
#2024
The text was updated successfully, but these errors were encountered:
I think this falls under the "extend-only imports" non-goal. If we had that, you'd be able to write something like
// _button.scss .buttonComponent { // ... }
// app.scss @use "button" extend-only; .btn { @extend .buttonComponent; }
and get the behavior you want.
Alternately, if you just want to scope the existing selectors, you can do that in the current proposal:
// app.scss @use "button" mixin; .btn { @include button; }
Either way, I don't think the proposal should be extended to include specific support for this use case.
Should the new module system have a selector rewriting capability?
#2024
The text was updated successfully, but these errors were encountered: