You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/icon/src/__tests__/__snapshots__/TextIconSpacing.tsx.snap
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,54 @@ exports[`TextIconSpacing should return the children if no icon prop is provided
30
30
</div>
31
31
`;
32
32
33
+
exports[`TextIconSpacing should swap the classnames correctly when flexReverse is enabled 1`] =`
34
+
<div>
35
+
<i
36
+
class="rmd-icon--after"
37
+
data-testid="icon"
38
+
/>
39
+
<span>
40
+
children
41
+
</span>
42
+
</div>
43
+
`;
44
+
45
+
exports[`TextIconSpacing should swap the classnames correctly when flexReverse is enabled 2`] =`
46
+
<div>
47
+
<span>
48
+
children
49
+
</span>
50
+
<i
51
+
class="rmd-icon--before"
52
+
data-testid="icon"
53
+
/>
54
+
</div>
55
+
`;
56
+
57
+
exports[`TextIconSpacing should swap the classnames correctly when flexReverse is enabled 3`] =`
58
+
<div>
59
+
<i
60
+
class="rmd-icon--below"
61
+
data-testid="icon"
62
+
/>
63
+
<span>
64
+
children
65
+
</span>
66
+
</div>
67
+
`;
68
+
69
+
exports[`TextIconSpacing should swap the classnames correctly when flexReverse is enabled 4`] =`
70
+
<div>
71
+
<span>
72
+
children
73
+
</span>
74
+
<i
75
+
class="rmd-icon--above"
76
+
data-testid="icon"
77
+
/>
78
+
</div>
79
+
`;
80
+
33
81
exports[`TextIconSpacing should wrap the icon in a span with the required classNames if the icon is not a valid react element or the forceIconWrap prop is enabled 1`] =`
0 commit comments