Commit 9d407ec
Extend theme-conditional test case with border-left template literal pattern
Add HighlightBox component testing the prop-based conditional with
theme access in a border shorthand template literal:
border-left: ${(props) => props.$isHighlighted
? `2px solid ${props.theme.color.greenBase}`
: '2px solid transparent'};
Update test for complex theme+prop conditions to verify inline style
emission with useTheme() instead of expecting bail.
Co-authored-by: Kenneth Skovhus <skovhus@users.noreply.github.com>1 parent 9b0049b commit 9d407ec
File tree
2 files changed
+41
-2
lines changed- test-cases
2 files changed
+41
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
14 | 22 | | |
15 | | - | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
| 26 | + | |
| 27 | + | |
18 | 28 | | |
19 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
17 | 32 | | |
18 | | - | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
| 36 | + | |
| 37 | + | |
21 | 38 | | |
22 | 39 | | |
23 | 40 | | |
| |||
34 | 51 | | |
35 | 52 | | |
36 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
37 | 66 | | |
0 commit comments