Using @for loop will generate styles w/out component namespacing
See original GitHub issueWith this in styles.scss
:
@for $i from 1 through 3 {
&.column-#{$i} {
@include column($i, 7, 0);
display: flex;
flex-direction: column;
}
}
Styles that are generated do not have component namespacing (order-confirmation):
Workaround so far is to include @for loop inside of parent selector
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Global namespace · Issue #613 · styled-components ... - GitHub
The background is papayawhip . So far we're handling it by adding to each styled component a class self in order to style...
Read more >Namespaces and Scope in Python
This tutorial covers Python namespaces, the structures used to organize the symbolic names assigned to objects in a Python program.
Read more >Loops in CSS Preprocessors | CSS-Tricks
I use incremental loops occasionally in my abstract Sass toolkits, but almost never in actual stylesheets. The one common exception is ...
Read more >Sass: @use
The @use rule loads mixins, functions, and variables from other Sass ... By default, the namespace is just the last component of the...
Read more >Style React Components: 7 Ways Compared - SitePoint
Understand the best ways to style React components. We compare regular CSS with preprocessors like Sass and CSS-in-JS libraries like ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bttf version v0.2.12 has been released. I added an acceptance test to ensure that the functionality remains.
@topaxi you are a gentleman and a scholar sir! Thanks for you quick turn around.