We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 285abe9 commit dd3e8d5Copy full SHA for dd3e8d5
src/transformVariants.js
@@ -3,6 +3,36 @@
3
* @flow
4
*/
5
6
+/**
7
+ * Variant names we want to see compiled as CSS pseudo classes.
8
+ */
9
+const SUPPORTED_PSEUDO_CLASSES = {
10
+ focus: true,
11
+ hover: true,
12
+ active: true,
13
+ checked: true,
14
+ default: true,
15
+ disabled: true,
16
+ empty: true,
17
+ enabled: true,
18
+ firstChild: true,
19
+ fullscreen: true,
20
+ indeterminate: true,
21
+ invalid: true,
22
+ lastChild: true,
23
+ left: true,
24
+ link: true,
25
+ onlyChild: true,
26
+ optional: true,
27
+ required: true,
28
+ right: true,
29
+ root: true,
30
+ scope: true,
31
+ target: true,
32
+ valid: true,
33
+ visited: true,
34
+};
35
+
36
export default function transformVariants(root) {
37
let toAppend = [];
38
root.each(rule => {
0 commit comments