|
2 | 2 |
|
3 | 3 | exports[`ccd > passes through additional html attributes 1`] = ` |
4 | 4 | <div |
5 | | - aria-label=" 1000 - 2000 watts. " |
| 5 | + aria-label="1000 - 2000 watts." |
6 | 6 | class="ccd class1" |
7 | 7 | data-passed-through="true" |
8 | 8 | data-testid="AttributePassthrough" |
@@ -63,7 +63,7 @@ exports[`ccd > passes through additional html attributes 1`] = ` |
63 | 63 |
|
64 | 64 | exports[`ccd > passes through additional html attributes 2`] = ` |
65 | 65 | <div |
66 | | - aria-label=" 1000 - 2000 watts. " |
| 66 | + aria-label="1000 - 2000 watts." |
67 | 67 | class="ccd class1" |
68 | 68 | data-passed-through="true" |
69 | 69 | data-testid="AttributePassthrough" |
@@ -125,7 +125,7 @@ exports[`ccd > passes through additional html attributes 2`] = ` |
125 | 125 | exports[`ccd > renders ccd with charger included 1`] = ` |
126 | 126 | "[36m<DocumentFragment>[39m |
127 | 127 | [36m<div[39m |
128 | | - [33maria-label[39m=[32m"Charger included. 1000 - 2000 watts. "[39m |
| 128 | + [33maria-label[39m=[32m"Charger included. 1000 - 2000 watts."[39m |
129 | 129 | [33mclass[39m=[32m"ccd"[39m |
130 | 130 | [33mrole[39m=[32m"figure"[39m |
131 | 131 | [36m>[39m |
@@ -206,7 +206,7 @@ exports[`ccd > renders ccd with charger included 1`] = ` |
206 | 206 | exports[`ccd > renders ccd with charger included and usbpd 1`] = ` |
207 | 207 | "[36m<DocumentFragment>[39m |
208 | 208 | [36m<div[39m |
209 | | - [33maria-label[39m=[32m"Charger included. 1000 - 2000 watts. "[39m |
| 209 | + [33maria-label[39m=[32m"Charger included. 1000 - 2000 watts."[39m |
210 | 210 | [33mclass[39m=[32m"ccd"[39m |
211 | 211 | [33mrole[39m=[32m"figure"[39m |
212 | 212 | [33msecondary[39m=[32m"usbpd"[39m |
@@ -288,7 +288,7 @@ exports[`ccd > renders ccd with charger included and usbpd 1`] = ` |
288 | 288 | exports[`ccd > renders ccd with charger not included 1`] = ` |
289 | 289 | "[36m<DocumentFragment>[39m |
290 | 290 | [36m<div[39m |
291 | | - [33maria-label[39m=[32m"Charger not included. 1000 - 2000 watts. "[39m |
| 291 | + [33maria-label[39m=[32m"Charger not included. 1000 - 2000 watts."[39m |
292 | 292 | [33mclass[39m=[32m"ccd"[39m |
293 | 293 | [33mrole[39m=[32m"figure"[39m |
294 | 294 | [36m>[39m |
@@ -451,7 +451,7 @@ exports[`ccd > renders ccd with custom a11y 1`] = ` |
451 | 451 | exports[`ccd > renders ccd with usbpd included 1`] = ` |
452 | 452 | "[36m<DocumentFragment>[39m |
453 | 453 | [36m<div[39m |
454 | | - [33maria-label[39m=[32m" 1000 - 2000 watts. "[39m |
| 454 | + [33maria-label[39m=[32m"1000 - 2000 watts."[39m |
455 | 455 | [33mclass[39m=[32m"ccd"[39m |
456 | 456 | [33mrole[39m=[32m"figure"[39m |
457 | 457 | [33msecondary[39m=[32m"usbpd"[39m |
@@ -509,7 +509,7 @@ exports[`ccd > renders ccd with usbpd included 1`] = ` |
509 | 509 | exports[`ccd > renders default ccd 1`] = ` |
510 | 510 | "[36m<DocumentFragment>[39m |
511 | 511 | [36m<div[39m |
512 | | - [33maria-label[39m=[32m" 1000 - 2000 watts. "[39m |
| 512 | + [33maria-label[39m=[32m"1000 - 2000 watts."[39m |
513 | 513 | [33mclass[39m=[32m"ccd"[39m |
514 | 514 | [33mrole[39m=[32m"figure"[39m |
515 | 515 | [36m>[39m |
@@ -562,3 +562,83 @@ exports[`ccd > renders default ccd 1`] = ` |
562 | 562 | [36m</div>[39m |
563 | 563 | [36m</DocumentFragment>[39m" |
564 | 564 | `; |
| 565 | + |
| 566 | +exports[`ccd > renders with no min and max 1`] = ` |
| 567 | +"[36m<DocumentFragment>[39m |
| 568 | + [36m<div[39m |
| 569 | + [33maria-label[39m=[32m""[39m |
| 570 | + [33mclass[39m=[32m"ccd"[39m |
| 571 | + [33mrole[39m=[32m"figure"[39m |
| 572 | + [36m/>[39m |
| 573 | +[36m</DocumentFragment>[39m" |
| 574 | +`; |
| 575 | + |
| 576 | +exports[`ccd > renders with no min and max but with charger included 1`] = ` |
| 577 | +"[36m<DocumentFragment>[39m |
| 578 | + [36m<div[39m |
| 579 | + [33maria-label[39m=[32m"Charger included."[39m |
| 580 | + [33mclass[39m=[32m"ccd"[39m |
| 581 | + [33mrole[39m=[32m"figure"[39m |
| 582 | + [36m>[39m |
| 583 | + [36m<svg[39m |
| 584 | + [33maria-hidden[39m=[32m"true"[39m |
| 585 | + [33mclass[39m=[32m"ccd__charger-icon icon icon--ccd-charger-included"[39m |
| 586 | + [33mdata-marko-key[39m=[32m"@svg s0-0-1-0"[39m |
| 587 | + [33mfocusable[39m=[32m"false"[39m |
| 588 | + [36m>[39m |
| 589 | + [36m<defs[39m |
| 590 | + [33mdata-marko-key[39m=[32m"@defs s0-0-1-0"[39m |
| 591 | + [36m>[39m |
| 592 | + [36m<symbol[39m |
| 593 | + [33mid[39m=[32m"icon-ccd-charger-included"[39m |
| 594 | + [33mviewBox[39m=[32m"0 0 58 78"[39m |
| 595 | + [36m>[39m |
| 596 | + [36m<path[39m |
| 597 | + [33mclip-rule[39m=[32m"evenodd"[39m |
| 598 | + [33md[39m=[32m"M0 0h58v78H0V0Zm1 1v76h56V1H1Zm7 28.75c0-.966.784-1.75 1.75-1.75H15V18h5V8h4v10h10V8h4v10h5v10h5.25c.967 0 1.75.784 1.75 1.75v38.5A1.75 1.75 0 0 1 48.25 70H9.75A1.75 1.75 0 0 1 8 68.25v-38.5ZM23 18V9h-2v9h2Zm14 0h-2V9h2v9Zm5 10v-9H16v9h26ZM9.75 29a.75.75 0 0 0-.75.75v38.5c0 .414.336.75.75.75h38.5a.75.75 0 0 0 .75-.75v-38.5a.75.75 0 0 0-.75-.75H9.75Z"[39m |
| 599 | + [33mfill-rule[39m=[32m"evenodd"[39m |
| 600 | + [36m/>[39m |
| 601 | + [36m</symbol>[39m |
| 602 | + [36m</defs>[39m |
| 603 | + [36m<use[39m |
| 604 | + [33mhref[39m=[32m"#icon-ccd-charger-included"[39m |
| 605 | + [36m/>[39m |
| 606 | + [36m</svg>[39m |
| 607 | + [36m</div>[39m |
| 608 | +[36m</DocumentFragment>[39m" |
| 609 | +`; |
| 610 | + |
| 611 | +exports[`ccd > renders with no min and max but with no charger included 1`] = ` |
| 612 | +"[36m<DocumentFragment>[39m |
| 613 | + [36m<div[39m |
| 614 | + [33maria-label[39m=[32m"Charger not included."[39m |
| 615 | + [33mclass[39m=[32m"ccd"[39m |
| 616 | + [33mrole[39m=[32m"figure"[39m |
| 617 | + [36m>[39m |
| 618 | + [36m<svg[39m |
| 619 | + [33maria-hidden[39m=[32m"true"[39m |
| 620 | + [33mclass[39m=[32m"ccd__charger-icon icon icon--ccd-charger-not-included"[39m |
| 621 | + [33mdata-marko-key[39m=[32m"@svg s0-0-2-0"[39m |
| 622 | + [33mfocusable[39m=[32m"false"[39m |
| 623 | + [36m>[39m |
| 624 | + [36m<defs[39m |
| 625 | + [33mdata-marko-key[39m=[32m"@defs s0-0-2-0"[39m |
| 626 | + [36m>[39m |
| 627 | + [36m<symbol[39m |
| 628 | + [33mid[39m=[32m"icon-ccd-charger-not-included"[39m |
| 629 | + [33mviewBox[39m=[32m"0 0 58 78"[39m |
| 630 | + [36m>[39m |
| 631 | + [36m<path[39m |
| 632 | + [33mclip-rule[39m=[32m"evenodd"[39m |
| 633 | + [33md[39m=[32m"M.5 0H0v78h58V0H.5ZM1 2.686V77h54.758l-5.914-8.026A1.75 1.75 0 0 1 48.25 70H9.75A1.75 1.75 0 0 1 8 68.25v-38.5c0-.966.784-1.75 1.75-1.75H15v-6.314l-14-19Zm15 20.357V28h3.653L16 23.043ZM22.137 28 16 19.671V19h26v9H22.137Zm-1.748 1H9.75a.75.75 0 0 0-.75.75v38.5c0 .414.336.75.75.75h38.5a.75.75 0 0 0 .75-.75v-.421L20.39 29ZM49 64.457 22.874 29H48.25a.75.75 0 0 1 .75.75v34.707Zm1 1.357V29.75A1.75 1.75 0 0 0 48.25 28H43V18h-5V8h-4v10H24V8h-4v10h-5v.314L2.242 1H57v74.314l-7-9.5ZM37 9v9h-2V9h2Zm-16 9h2V9h-2v9Z"[39m |
| 634 | + [33mfill-rule[39m=[32m"evenodd"[39m |
| 635 | + [36m/>[39m |
| 636 | + [36m</symbol>[39m |
| 637 | + [36m</defs>[39m |
| 638 | + [36m<use[39m |
| 639 | + [33mhref[39m=[32m"#icon-ccd-charger-not-included"[39m |
| 640 | + [36m/>[39m |
| 641 | + [36m</svg>[39m |
| 642 | + [36m</div>[39m |
| 643 | +[36m</DocumentFragment>[39m" |
| 644 | +`; |
0 commit comments