@@ -25,7 +25,7 @@ exports[`Checkbox should render with checked styles when passed the checked prop
25
25
border - color : #3388FF ;
26
26
}
27
27
28
- .circuit-0:checked + label::after {
28
+ .circuit-0:checked + label > svg {
29
29
- webkit - transform : translateY (- 50 % ) scale (1 ,1 );
30
30
- ms - transform : translateY (- 50 % ) scale (1 ,1 );
31
31
transform : translateY (- 50 % ) scale (1 ,1 );
@@ -63,11 +63,11 @@ exports[`Checkbox should render with checked styles when passed the checked prop
63
63
transition : border 0.05s ease - in ;
64
64
}
65
65
66
- .circuit-2::after {
66
+ .circuit-2 svg {
67
67
height : 10px ;
68
68
width : 10px ;
69
69
box - sizing : border - box ;
70
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%233388FF'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
70
+ fill : #3388 FF ;
71
71
display : block ;
72
72
left : 3px ;
73
73
line - height : 0 ;
@@ -103,7 +103,11 @@ exports[`Checkbox should render with checked styles when passed the checked prop
103
103
name = " name"
104
104
onChange = { [MockFunction ]}
105
105
value = " "
106
- />
106
+ >
107
+ <div >
108
+ checked-icon.svg
109
+ </div >
110
+ </label >
107
111
</div >
108
112
` ;
109
113
@@ -132,7 +136,7 @@ exports[`Checkbox should render with default styles 1`] = `
132
136
border - color : #3388FF ;
133
137
}
134
138
135
- .circuit-0:checked + label::after {
139
+ .circuit-0:checked + label > svg {
136
140
- webkit - transform : translateY (- 50 % ) scale (1 ,1 );
137
141
- ms - transform : translateY (- 50 % ) scale (1 ,1 );
138
142
transform : translateY (- 50 % ) scale (1 ,1 );
@@ -170,11 +174,11 @@ exports[`Checkbox should render with default styles 1`] = `
170
174
transition : border 0.05s ease - in ;
171
175
}
172
176
173
- .circuit-2::after {
177
+ .circuit-2 svg {
174
178
height : 10px ;
175
179
width : 10px ;
176
180
box - sizing : border - box ;
177
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%233388FF'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
181
+ fill : #3388 FF ;
178
182
display : block ;
179
183
left : 3px ;
180
184
line - height : 0 ;
@@ -210,7 +214,11 @@ exports[`Checkbox should render with default styles 1`] = `
210
214
name = " name"
211
215
onChange = { [MockFunction ]}
212
216
value = " "
213
- />
217
+ >
218
+ <div >
219
+ checked-icon.svg
220
+ </div >
221
+ </label >
214
222
</div >
215
223
` ;
216
224
@@ -239,7 +247,7 @@ exports[`Checkbox should render with disabled styles when passed the disabled pr
239
247
border - color : #3388FF ;
240
248
}
241
249
242
- .circuit-0:checked + label::after {
250
+ .circuit-0:checked + label > svg {
243
251
- webkit - transform : translateY (- 50 % ) scale (1 ,1 );
244
252
- ms - transform : translateY (- 50 % ) scale (1 ,1 );
245
253
transform : translateY (- 50 % ) scale (1 ,1 );
@@ -280,11 +288,11 @@ exports[`Checkbox should render with disabled styles when passed the disabled pr
280
288
transition : border 0.05s ease - in ;
281
289
}
282
290
283
- .circuit-2::after {
291
+ .circuit-2 svg {
284
292
height : 10px ;
285
293
width : 10px ;
286
294
box - sizing : border - box ;
287
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%233388FF'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
295
+ fill : #3388 FF ;
288
296
display : block ;
289
297
left : 3px ;
290
298
line - height : 0 ;
@@ -307,11 +315,11 @@ exports[`Checkbox should render with disabled styles when passed the disabled pr
307
315
background - color : #FAFBFC ;
308
316
}
309
317
310
- .circuit-2::after {
318
+ .circuit-2 svg {
311
319
opacity : 0.5 ;
312
320
pointer - events : none ;
313
321
box - shadow : none ;
314
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%239DA7B1'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
322
+ fill : #9 DA7B1 ;
315
323
}
316
324
317
325
<div
@@ -335,7 +343,11 @@ exports[`Checkbox should render with disabled styles when passed the disabled pr
335
343
name = " name"
336
344
onChange = { [MockFunction ]}
337
345
value = " "
338
- />
346
+ >
347
+ <div >
348
+ checked-icon.svg
349
+ </div >
350
+ </label >
339
351
</div >
340
352
` ;
341
353
@@ -364,7 +376,7 @@ exports[`Checkbox should render with invalid styles when passed the invalid prop
364
376
border - color : #3388FF ;
365
377
}
366
378
367
- .circuit-0:checked + label::after {
379
+ .circuit-0:checked + label > svg {
368
380
- webkit - transform : translateY (- 50 % ) scale (1 ,1 );
369
381
- ms - transform : translateY (- 50 % ) scale (1 ,1 );
370
382
transform : translateY (- 50 % ) scale (1 ,1 );
@@ -402,11 +414,11 @@ exports[`Checkbox should render with invalid styles when passed the invalid prop
402
414
transition : border 0.05s ease - in ;
403
415
}
404
416
405
- .circuit-2::after {
417
+ .circuit-2 svg {
406
418
height : 10px ;
407
419
width : 10px ;
408
420
box - sizing : border - box ;
409
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%233388FF'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
421
+ fill : #3388 FF ;
410
422
display : block ;
411
423
left : 3px ;
412
424
line - height : 0 ;
@@ -425,8 +437,8 @@ exports[`Checkbox should render with invalid styles when passed the invalid prop
425
437
border - color : #FF7559 ;
426
438
}
427
439
428
- .circuit-2:not(:focus)::after {
429
- content : url ( " data:image/svg+xml,%3Csvg%20width%3D'10'%20height%3D'10'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M3.438%206.973l5.097-5.694a.858.858%200%200%201%201.175-.086c.349.288.389.793.089%201.128l-5.73%206.4a.856.856%200%200%201-1.264%200L.201%205.812a.778.778%200%200%201%20.09-1.128.858.858%200%200%201%201.174.086l1.973%202.203z'%20fill%3D'%23FF7559'%20fill-rule%3D'nonzero'%2F%3E%3C%2Fsvg%3E " ) ;
440
+ .circuit-2:not(:focus) svg {
441
+ fill : # FF7559 ;
430
442
}
431
443
432
444
<div
@@ -450,6 +462,10 @@ exports[`Checkbox should render with invalid styles when passed the invalid prop
450
462
name = " name"
451
463
onChange = { [MockFunction ]}
452
464
value = " "
453
- />
465
+ >
466
+ <div >
467
+ checked-icon.svg
468
+ </div >
469
+ </label >
454
470
</div >
455
471
` ;
0 commit comments