1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` Radio button Matches the snapshot 1` ] = `
4
- Array [
5
- .c0 {
4
+ .c2 {
5
+ color : #000000 ;
6
+ display : block ;
6
7
font - size : 0.75rem ;
8
+ font - weight : var (-- font - normal );
9
+ - webkit - letter - spacing : 0.02rem ;
10
+ - moz - letter - spacing : 0.02rem ;
11
+ - ms - letter - spacing : 0.02rem ;
12
+ letter - spacing : 0.02rem ;
7
13
line - height : 1.25rem ;
8
- margin - bottom : var (-- spacing - 1x );
9
- padding : 0 ;
14
+ margin : 0 ;
15
+ width : - webkit - fit - content ;
16
+ width : - moz - fit - content ;
17
+ width : fit - content ;
10
18
}
11
19
12
- <legend
13
- class = " c0"
14
- >
15
- Planets
16
- </legend >,
17
- .c0 {
20
+ input + .c1 {
21
+ margin - left : var (-- spacing - half );
22
+ }
23
+
24
+ .c0 div + label {
25
+ margin - top : var (-- spacing - 1x );
26
+ }
27
+
28
+ .c3 {
18
29
cursor : pointer ;
19
30
display : block ;
20
31
font - size : 0.875rem ;
@@ -27,11 +38,11 @@ Array [
27
38
user - select : none ;
28
39
}
29
40
30
- .c0 :not(:first-of-type) {
41
+ .c3 :not(:first-of-type) {
31
42
margin - top : var (-- spacing - 1x );
32
43
}
33
44
34
- .c0 input {
45
+ .c3 input {
35
46
height : 16px ;
36
47
left : 0 ;
37
48
margin : 0 ;
@@ -41,12 +52,12 @@ Array [
41
52
width : 16px ;
42
53
}
43
54
44
- .c0 input:checked + .radioInput {
55
+ .c3 input:checked + .radioInput {
45
56
background - color : #006296 ;
46
57
border : 1px solid #006296 ;
47
58
}
48
59
49
- .c0 input:checked + .radioInput::after {
60
+ .c3 input:checked + .radioInput::after {
50
61
background - color : #FFFFFF ;
51
62
border - radius : 50 % ;
52
63
content : " " ;
@@ -60,13 +71,13 @@ Array [
60
71
width : 8px ;
61
72
}
62
73
63
- .c0 input:focus + .radioInput {
74
+ .c3 input:focus + .radioInput {
64
75
outline : none ;
65
76
border - color : #006296 ;
66
77
box - shadow : 0 0 0 2px #84C6EA ;
67
78
}
68
79
69
- .c0 .radioInput {
80
+ .c3 .radioInput {
70
81
background - color : #FFFFFF ;
71
82
border : 1px solid #60666E ;
72
83
border - radius : 50 % ;
@@ -80,26 +91,11 @@ Array [
80
91
width : 16px ;
81
92
}
82
93
83
- .c0 :hover .radioInput {
94
+ .c3 :hover .radioInput {
84
95
border : 1px solid #006296 ;
85
96
}
86
97
87
- <label
88
- class = " c0"
89
- >
90
- Earth
91
- <input
92
- data-testid = " radio-button-group-earth"
93
- name = " planets"
94
- type = " radio"
95
- value = " earth"
96
- />
97
- <span
98
- class = " radioInput"
99
- />
100
- </label >,
101
- .c0 {
102
- cursor : pointer ;
98
+ .c4 {
103
99
display : block ;
104
100
font - size : 0.875rem ;
105
101
line - height : 1.5rem ;
@@ -111,11 +107,11 @@ Array [
111
107
user - select : none ;
112
108
}
113
109
114
- .c0 :not(:first-of-type) {
110
+ .c4 :not(:first-of-type) {
115
111
margin - top : var (-- spacing - 1x );
116
112
}
117
113
118
- .c0 input {
114
+ .c4 input {
119
115
height : 16px ;
120
116
left : 0 ;
121
117
margin : 0 ;
@@ -125,12 +121,12 @@ Array [
125
121
width : 16px ;
126
122
}
127
123
128
- .c0 input:checked + .radioInput {
124
+ .c4 input:checked + .radioInput {
129
125
background - color : #006296 ;
130
126
border : 1px solid #006296 ;
131
127
}
132
128
133
- .c0 input:checked + .radioInput::after {
129
+ .c4 input:checked + .radioInput::after {
134
130
background - color : #FFFFFF ;
135
131
border - radius : 50 % ;
136
132
content : " " ;
@@ -144,15 +140,15 @@ Array [
144
140
width : 8px ;
145
141
}
146
142
147
- .c0 input:focus + .radioInput {
143
+ .c4 input:focus + .radioInput {
148
144
outline : none ;
149
145
border - color : #006296 ;
150
146
box - shadow : 0 0 0 2px #84C6EA ;
151
147
}
152
148
153
- .c0 .radioInput {
154
- background - color : #FFFFFF ;
155
- border : 1px solid #60666 E ;
149
+ .c4 .radioInput {
150
+ background - color : #F1F2F2 ;
151
+ border : 1px solid #DBDEE1 ;
156
152
border - radius : 50 % ;
157
153
box - sizing : border - box ;
158
154
display : inline - block ;
@@ -164,12 +160,35 @@ Array [
164
160
width : 16px ;
165
161
}
166
162
167
- .c0 :hover .radioInput {
168
- border : 1px solid #006296 ;
163
+ .c4 :hover .radioInput {
164
+ border : 1px solid #DBDEE1 ;
169
165
}
170
166
171
- <label
172
- class = " c0"
167
+ <div
168
+ class = " c0"
169
+ >
170
+ <label
171
+ class = " c1 c2"
172
+ for = " test-id"
173
+ >
174
+ Planets
175
+ </label >
176
+ <label
177
+ class = " c3"
178
+ >
179
+ Earth
180
+ <input
181
+ data-testid = " radio-button-group-earth"
182
+ name = " planets"
183
+ type = " radio"
184
+ value = " earth"
185
+ />
186
+ <span
187
+ class = " radioInput"
188
+ />
189
+ </label >
190
+ <label
191
+ class = " c3"
173
192
>
174
193
Mars
175
194
<input
@@ -182,78 +201,9 @@ Array [
182
201
<span
183
202
class = " radioInput"
184
203
/>
185
- </label >,
186
- .c0 {
187
- display : block ;
188
- font - size : 0.875rem ;
189
- line - height : 1.5rem ;
190
- padding - left : var (-- spacing - 3x );
191
- position : relative ;
192
- - webkit - user - select : none ;
193
- - moz - user - select : none ;
194
- - ms - user - select : none ;
195
- user - select : none ;
196
- }
197
-
198
- .c0:not(:first-of-type) {
199
- margin - top : var (-- spacing - 1x );
200
- }
201
-
202
- .c0 input {
203
- height : 16px ;
204
- left : 0 ;
205
- margin : 0 ;
206
- opacity : 0 ;
207
- position : absolute ;
208
- top : 2px ;
209
- width : 16px ;
210
- }
211
-
212
- .c0 input:checked + .radioInput {
213
- background - color : #006296 ;
214
- border : 1px solid #006296 ;
215
- }
216
-
217
- .c0 input:checked + .radioInput::after {
218
- background - color : #FFFFFF ;
219
- border - radius : 50 % ;
220
- content : " " ;
221
- height : 8px ;
222
- left : 50 % ;
223
- position : absolute ;
224
- top : 50 % ;
225
- - webkit - transform : translate (- 50 % ,- 50 % );
226
- - ms - transform : translate (- 50 % ,- 50 % );
227
- transform : translate (- 50 % ,- 50 % );
228
- width : 8px ;
229
- }
230
-
231
- .c0 input:focus + .radioInput {
232
- outline : none ;
233
- border - color : #006296 ;
234
- box - shadow : 0 0 0 2px #84C6EA ;
235
- }
236
-
237
- .c0 .radioInput {
238
- background - color : #F1F2F2 ;
239
- border : 1px solid #DBDEE1 ;
240
- border - radius : 50 % ;
241
- box - sizing : border - box ;
242
- display : inline - block ;
243
- height : 16px ;
244
- left : 0 ;
245
- margin - top : var (-- spacing - half );
246
- position : absolute ;
247
- top : 0 ;
248
- width : 16px ;
249
- }
250
-
251
- .c0:hover .radioInput {
252
- border : 1px solid #DBDEE1 ;
253
- }
254
-
255
- <label
256
- class = " c0"
204
+ </label >
205
+ <label
206
+ class = " c4"
257
207
disabled = " "
258
208
>
259
209
Pluto
@@ -267,79 +217,9 @@ Array [
267
217
<span
268
218
class = " radioInput"
269
219
/>
270
- </label >,
271
- .c0 {
272
- cursor : pointer ;
273
- display : block ;
274
- font - size : 0.875rem ;
275
- line - height : 1.5rem ;
276
- padding - left : var (-- spacing - 3x );
277
- position : relative ;
278
- - webkit - user - select : none ;
279
- - moz - user - select : none ;
280
- - ms - user - select : none ;
281
- user - select : none ;
282
- }
283
-
284
- .c0:not(:first-of-type) {
285
- margin - top : var (-- spacing - 1x );
286
- }
287
-
288
- .c0 input {
289
- height : 16px ;
290
- left : 0 ;
291
- margin : 0 ;
292
- opacity : 0 ;
293
- position : absolute ;
294
- top : 2px ;
295
- width : 16px ;
296
- }
297
-
298
- .c0 input:checked + .radioInput {
299
- background - color : #006296 ;
300
- border : 1px solid #006296 ;
301
- }
302
-
303
- .c0 input:checked + .radioInput::after {
304
- background - color : #FFFFFF ;
305
- border - radius : 50 % ;
306
- content : " " ;
307
- height : 8px ;
308
- left : 50 % ;
309
- position : absolute ;
310
- top : 50 % ;
311
- - webkit - transform : translate (- 50 % ,- 50 % );
312
- - ms - transform : translate (- 50 % ,- 50 % );
313
- transform : translate (- 50 % ,- 50 % );
314
- width : 8px ;
315
- }
316
-
317
- .c0 input:focus + .radioInput {
318
- outline : none ;
319
- border - color : #006296 ;
320
- box - shadow : 0 0 0 2px #84C6EA ;
321
- }
322
-
323
- .c0 .radioInput {
324
- background - color : #FFFFFF ;
325
- border : 1px solid #60666E ;
326
- border - radius : 50 % ;
327
- box - sizing : border - box ;
328
- display : inline - block ;
329
- height : 16px ;
330
- left : 0 ;
331
- margin - top : var (-- spacing - half );
332
- position : absolute ;
333
- top : 0 ;
334
- width : 16px ;
335
- }
336
-
337
- .c0:hover .radioInput {
338
- border : 1px solid #006296 ;
339
- }
340
-
341
- <label
342
- class = " c0"
220
+ </label >
221
+ <label
222
+ class = " c3"
343
223
>
344
224
Saturn
345
225
<input
@@ -351,6 +231,6 @@ Array [
351
231
<span
352
232
class = " radioInput"
353
233
/>
354
- </label >,
355
- ]
234
+ </label >
235
+ </ div >
356
236
` ;
0 commit comments