-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
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
Class is undefined if build with empty string. #3124
Comments
That's neat but what's the real use case here? Why is an empty string getting injected into a class name like that and why would you ever need it? |
I was generating class for different media queries in loop. For example: |
This is a duplicate of #2831. |
Closing as a duplicate of #2831. |
If you build class with empty string for example:
@variable: ~''; .a@{variable}-b { a-b: 1 }
Output will be:
.a-b { a-b: 1 }
and this class can be used.But if you try use .a-b class in another class as mixin for example:
.c { .a-b; }
Error 'a-b' is undefined will be present.
.c { .a-b; }
will work only if you declare a-b class this way.a-b { a-b: 1 }
.The text was updated successfully, but these errors were encountered: