vscode-css-modules
vscode-css-modules copied to clipboard
Support for nested classes (ampersand)
Add support for nested classes using with postcss, scss plugins.
Sometimes you need to separate the styles for the child container and add prefix for it.
Example
.root { ... }
.label {
font-size: 1rem;
&_primary {
color: green;
}
&_sizeSmall {
font-size: 0.875rem;
}
}
Expected result autocomplete
styles.label
label_primary
label_sizeSmall
P.S. This case works in WebStorm
Any news on this feature?
@clinyong any update?
Since CSS nesting came in all major browsers (in Firefox since 117 version /current Beta/) this issue became more and more important