What is the JSS syntax for referencing generated c

2019-08-20 09:46发布

问题:

Material UI uses JSS at its core and you sometimes need to override styles from their base components.

Example from Input: '&:hover:not($disabled):before'{ ... }

I cannot find this syntax mentioned in the JSS syntax docs, so it's hard to discuss with others without a common name. What is it called?

回答1:

This functionality is made possible through a plugin for nesting.

The plugin itself describes this as "nested selectors", which is also usually the term you will find being used to describe it when searching Stack Overflow.



标签: jss css-in-js