We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52d3f6a + cf1f143 commit 5c2afd9Copy full SHA for 5c2afd9
docs/jss-plugin-nested.md
@@ -143,6 +143,28 @@ Compiles to:
143
}
144
```
145
146
+## Increase specificity
147
+
148
+When extending third party libraries with high secificity selector it's often necessary to also have a high specificity selector.
149
150
+```javascript
151
+const styles = {
152
+ button: {
153
+ '.button &': {
154
+ color: 'red'
155
+ }
156
157
+}
158
+```
159
160
+Compiles to:
161
162
+```css
163
+.button .button-0 {
164
+ color: 'red';
165
166
167
168
### Demo
169
170
[CodeSandbox](//codesandbox.io/s/github/cssinjs/jss/tree/master/examples/plugins/jss-plugin-nested?fontsize=14)
0 commit comments