Skip to content

Commit 7d17746

Browse files
committed
test: add case for custom variant with pseudo
1 parent 07804fa commit 7d17746

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.Label__custom:hover {
2+
color: red
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import styles from "css";
3+
export function Label({
4+
variant,
5+
...props }) {
6+
let className = styles.Label + (variant.custom ? ' ' + styles.Label__custom : '');
7+
return React.createElement("div", { ...props, className
8+
});
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Label:custom:hover {
2+
color: red;
3+
}

0 commit comments

Comments
 (0)