|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | | -exports[`Input should set the htmlFor attribute for the label 1`] = ` |
4 | | -.c3 { |
5 | | - position: absolute; |
6 | | - pointer-events: none; |
7 | | - background-color: transparent; |
8 | | - line-height: 1.5; |
9 | | - overflow: hidden; |
10 | | - text-overflow: ellipsis; |
11 | | - white-space: nowrap; |
12 | | - max-width: calc(100% - 2rem); |
13 | | - -webkit-transition: top 100ms ease-out,left 100ms ease-out, padding 100ms ease-out,font-size 100ms ease-out, color 100ms ease-out,background 100ms ease-out; |
14 | | - transition: top 100ms ease-out,left 100ms ease-out, padding 100ms ease-out,font-size 100ms ease-out, color 100ms ease-out,background 100ms ease-out; |
15 | | - top: 0.75rem; |
16 | | - left: 0.5rem; |
17 | | - padding: 0 0.25rem; |
18 | | - font-size: 1rem; |
19 | | -} |
20 | | -
|
21 | | -.c1 { |
22 | | - margin: 0; |
23 | | - box-sizing: border-box; |
24 | | - background: #FFFFFF; |
25 | | - border-radius: 0; |
26 | | - color: #001E3E; |
27 | | - font-size: 1rem; |
28 | | - font-family: "Open Sans",sans-serif; |
29 | | - -webkit-transition: box-shadow 100ms,border 100ms; |
30 | | - transition: box-shadow 100ms,border 100ms; |
31 | | - outline: none; |
32 | | - -webkit-appearance: none; |
33 | | - -moz-appearance: none; |
34 | | - appearance: none; |
35 | | - width: 100%; |
36 | | - border-radius: 0.25rem; |
37 | | - border: 0.0625rem solid #C6CDD4; |
38 | | - font-size: 1rem; |
39 | | - height: 3rem; |
40 | | - padding: 0 0.75rem; |
41 | | -} |
42 | | -
|
43 | | -.c1::-webkit-input-placeholder { |
44 | | - color: #9CA7B4; |
45 | | -} |
46 | | -
|
47 | | -.c1::-moz-placeholder { |
48 | | - color: #9CA7B4; |
49 | | -} |
50 | | -
|
51 | | -.c1:-ms-input-placeholder { |
52 | | - color: #9CA7B4; |
53 | | -} |
54 | | -
|
55 | | -.c1::placeholder { |
56 | | - color: #9CA7B4; |
57 | | -} |
58 | | -
|
59 | | -.c1:active, |
60 | | -.c1:focus { |
61 | | - border-color: #096BDB; |
62 | | - box-shadow: inset 0 0 0 0.0625rem #096BDB; |
63 | | -} |
64 | | -
|
65 | | -.c1:disabled { |
66 | | - color: #C6CDD4; |
67 | | - border-color: #C6CDD4; |
68 | | - box-shadow: none; |
69 | | - cursor: not-allowed; |
70 | | -} |
71 | | -
|
72 | | -.c1:disabled::-webkit-input-placeholder { |
73 | | - color: #C6CDD4; |
74 | | -} |
75 | | -
|
76 | | -.c1:disabled::-moz-placeholder { |
77 | | - color: #C6CDD4; |
78 | | -} |
79 | | -
|
80 | | -.c1:disabled:-ms-input-placeholder { |
81 | | - color: #C6CDD4; |
82 | | -} |
83 | | -
|
84 | | -.c1:disabled::placeholder { |
85 | | - color: #C6CDD4; |
86 | | -} |
87 | | -
|
88 | | -.c1:-webkit-autofill, |
89 | | -.c1:-webkit-autofill:hover, |
90 | | -.c1:-webkit-autofill:focus, |
91 | | -.c1:-webkit-autofill:active { |
92 | | - -webkit-text-fill-color: #001E3E; |
93 | | - -webkit-transition: background-color 99999999ms ease 99999999ms; |
94 | | - transition: background-color 99999999ms ease 99999999ms; |
95 | | -} |
96 | | -
|
97 | | -.c1 + .c2 { |
98 | | - color: #9CA7B4; |
99 | | - background: #FFFFFF; |
100 | | - background: linear-gradient(0deg,#FFFFFF calc(50% + 0.0625rem),transparent 50%); |
101 | | -} |
102 | | -
|
103 | | -.c1:disabled + .c2 { |
104 | | - color: #C6CDD4; |
105 | | -} |
106 | | -
|
107 | | -.c1:-webkit-autofill + .c2, |
108 | | -.c1:-webkit-autofill:hover + .c2, |
109 | | -.c1:-webkit-autofill:focus + .c2, |
110 | | -.c1:-webkit-autofill:active + .c2 { |
111 | | - font-weight: 600; |
112 | | - top: -0.5rem; |
113 | | - font-size: 0.75rem; |
114 | | -} |
115 | | -
|
116 | | -.c1:focus:not(:disabled) + .c2 { |
117 | | - font-weight: 600; |
118 | | - top: -0.5rem; |
119 | | - font-size: 0.75rem; |
120 | | - color: #096BDB; |
121 | | - background: #FFFFFF; |
122 | | - background: linear-gradient(0deg,#FFFFFF calc(50% + 0.0625rem),transparent 50%); |
123 | | -} |
124 | | -
|
125 | | -.c0 { |
126 | | - display: inline-block; |
127 | | - position: relative; |
128 | | - box-sizing: border-box; |
129 | | -} |
130 | | -
|
131 | | -<div |
132 | | - class="c0" |
133 | | -> |
134 | | - <input |
135 | | - class="sc-AxjAm c1" |
136 | | - id="test-input-id" |
137 | | - type="text" |
138 | | - /> |
139 | | - <label |
140 | | - class="sc-AxirZ c2 c3" |
141 | | - for="test-input-id" |
142 | | - > |
143 | | - Simple Label |
144 | | - </label> |
145 | | -</div> |
146 | | -`; |
147 | | - |
148 | 3 | exports[`Input variant "bottom-lined" renders 1`] = ` |
149 | 4 | .c1 { |
150 | 5 | margin: 0; |
@@ -261,6 +116,7 @@ exports[`Input variant "bottom-lined" renders 1`] = ` |
261 | 116 | > |
262 | 117 | <input |
263 | 118 | class="sc-AxjAm c1" |
| 119 | + id="random" |
264 | 120 | type="text" |
265 | 121 | /> |
266 | 122 | </div> |
@@ -388,6 +244,7 @@ exports[`Input variant "bottom-lined" renders the error state 1`] = ` |
388 | 244 | > |
389 | 245 | <input |
390 | 246 | class="sc-AxjAm c1" |
| 247 | + id="random" |
391 | 248 | type="text" |
392 | 249 | /> |
393 | 250 | </div> |
@@ -535,11 +392,13 @@ exports[`Input variant "bottom-lined" renders the error state with label and pla |
535 | 392 | > |
536 | 393 | <input |
537 | 394 | class="sc-AxjAm c1" |
| 395 | + id="random" |
538 | 396 | placeholder="FREE NOW" |
539 | 397 | type="text" |
540 | 398 | /> |
541 | 399 | <label |
542 | 400 | class="sc-AxirZ c2 c3" |
| 401 | + for="random" |
543 | 402 | > |
544 | 403 | Name |
545 | 404 | </label> |
@@ -662,6 +521,7 @@ exports[`Input variant "bottom-lined" renders the inverted style 1`] = ` |
662 | 521 | > |
663 | 522 | <input |
664 | 523 | class="sc-AxjAm c1" |
| 524 | + id="random" |
665 | 525 | type="text" |
666 | 526 | /> |
667 | 527 | </div> |
@@ -800,10 +660,12 @@ exports[`Input variant "bottom-lined" renders the label 1`] = ` |
800 | 660 | > |
801 | 661 | <input |
802 | 662 | class="sc-AxjAm c1" |
| 663 | + id="random" |
803 | 664 | type="text" |
804 | 665 | /> |
805 | 666 | <label |
806 | 667 | class="sc-AxirZ c2 c3" |
| 668 | + for="random" |
807 | 669 | > |
808 | 670 | Name |
809 | 671 | </label> |
@@ -946,11 +808,13 @@ exports[`Input variant "bottom-lined" renders the label and the placeholder 1`] |
946 | 808 | > |
947 | 809 | <input |
948 | 810 | class="sc-AxjAm c1" |
| 811 | + id="random" |
949 | 812 | placeholder="FREE NOW" |
950 | 813 | type="text" |
951 | 814 | /> |
952 | 815 | <label |
953 | 816 | class="sc-AxirZ c2 c3" |
| 817 | + for="random" |
954 | 818 | > |
955 | 819 | Name |
956 | 820 | </label> |
@@ -1073,6 +937,7 @@ exports[`Input variant "bottom-lined" renders the small size 1`] = ` |
1073 | 937 | > |
1074 | 938 | <input |
1075 | 939 | class="sc-AxjAm c1" |
| 940 | + id="random" |
1076 | 941 | type="text" |
1077 | 942 | /> |
1078 | 943 | </div> |
@@ -1194,6 +1059,7 @@ exports[`Input variant "boxed" renders 1`] = ` |
1194 | 1059 | > |
1195 | 1060 | <input |
1196 | 1061 | class="sc-AxjAm c1" |
| 1062 | + id="random" |
1197 | 1063 | type="text" |
1198 | 1064 | /> |
1199 | 1065 | </div> |
@@ -1321,6 +1187,7 @@ exports[`Input variant "boxed" renders the error state 1`] = ` |
1321 | 1187 | > |
1322 | 1188 | <input |
1323 | 1189 | class="sc-AxjAm c1" |
| 1190 | + id="random" |
1324 | 1191 | type="text" |
1325 | 1192 | /> |
1326 | 1193 | </div> |
@@ -1468,11 +1335,13 @@ exports[`Input variant "boxed" renders the error state with label and placeholde |
1468 | 1335 | > |
1469 | 1336 | <input |
1470 | 1337 | class="sc-AxjAm c1" |
| 1338 | + id="random" |
1471 | 1339 | placeholder="FREE NOW" |
1472 | 1340 | type="text" |
1473 | 1341 | /> |
1474 | 1342 | <label |
1475 | 1343 | class="sc-AxirZ c2 c3" |
| 1344 | + for="random" |
1476 | 1345 | > |
1477 | 1346 | Name |
1478 | 1347 | </label> |
@@ -1595,6 +1464,7 @@ exports[`Input variant "boxed" renders the inverted style 1`] = ` |
1595 | 1464 | > |
1596 | 1465 | <input |
1597 | 1466 | class="sc-AxjAm c1" |
| 1467 | + id="random" |
1598 | 1468 | type="text" |
1599 | 1469 | /> |
1600 | 1470 | </div> |
@@ -1733,10 +1603,12 @@ exports[`Input variant "boxed" renders the label 1`] = ` |
1733 | 1603 | > |
1734 | 1604 | <input |
1735 | 1605 | class="sc-AxjAm c1" |
| 1606 | + id="random" |
1736 | 1607 | type="text" |
1737 | 1608 | /> |
1738 | 1609 | <label |
1739 | 1610 | class="sc-AxirZ c2 c3" |
| 1611 | + for="random" |
1740 | 1612 | > |
1741 | 1613 | Name |
1742 | 1614 | </label> |
@@ -1879,11 +1751,13 @@ exports[`Input variant "boxed" renders the label and the placeholder 1`] = ` |
1879 | 1751 | > |
1880 | 1752 | <input |
1881 | 1753 | class="sc-AxjAm c1" |
| 1754 | + id="random" |
1882 | 1755 | placeholder="FREE NOW" |
1883 | 1756 | type="text" |
1884 | 1757 | /> |
1885 | 1758 | <label |
1886 | 1759 | class="sc-AxirZ c2 c3" |
| 1760 | + for="random" |
1887 | 1761 | > |
1888 | 1762 | Name |
1889 | 1763 | </label> |
@@ -2006,6 +1880,7 @@ exports[`Input variant "boxed" renders the small size 1`] = ` |
2006 | 1880 | > |
2007 | 1881 | <input |
2008 | 1882 | class="sc-AxjAm c1" |
| 1883 | + id="random" |
2009 | 1884 | type="text" |
2010 | 1885 | /> |
2011 | 1886 | </div> |
|
0 commit comments