Allow &-nesting of element name
See original GitHub issueIt seems as though nesting with &
just concatenates whatever follows the ampersand.
So { root: { '&a': { backgroundColor: ... } } }
becomes:
It’d be nice to be able to &
element names as well.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Allowed nesting of elements in HTML 4 (and XHTML 1.0)
If there is no such list, no nested elements are allowed. This means that only text (#PCDATA, see next item) is allowed inside...
Read more >Nesting tags - IBM
Nesting tags can take on many different forms and can be complex. For example, some tags allow multiple tags or multiple occurrences of...
Read more >CSS Nesting Module - W3C
This module describes support for nesting a style rule within another style rule, allowing the inner rule's selector to reference the elements ......
Read more >Nested elements - HTML - Simple Dev
Elements inside of other elements are called nested elements. Sometimes the outer element will just contain other elements, as in the example above....
Read more >HTML Elements Tutorial with Examples - TutorialBrain
HTML Element inside other element is called Nesting of an element. ... In the above example <em> and <b> tags are inside <p>...
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
Ok, thanks for the detailed explanation.
I’ll close for now as I have no way to fix it myself. 😕
Maybe it would be worth opening an issue on the emotion repo…
PS: As you mentioned
ReactRouter
maybe you’d like to checkout type-route, I love this lib!Thank you for reporting,
I will investigate although this is more likely to be related to
emotion
.When you type this:
{ root: { '&a': { backgroundColor: ... } } }
you want that thebackgroundColor
only apply if the element the class is apply to is an<a>
am I correct? Like: