@@ -4,15 +4,15 @@ import { Template } from "./template.js";
4
4
export const DialogGroup = Variants ( {
5
5
Template : ( args , context ) => (
6
6
/*
7
- * This template forces each test case to showModal: false, and give a background
7
+ * This template forces each test case to showModal: false, and give a background
8
8
* color to the dialog grid container when isChromatic() is true.
9
9
* This should ensure that the Sizes within the Variants() template to display correctly.
10
10
*/
11
11
12
12
Template ( {
13
13
...args ,
14
14
showModal : window . isChromatic ( ) ? false : args . showModal ,
15
- // TODO: The dialog's heading arg is getting passed as the "Sizing" heading arg (instead of the
15
+ // TODO: The dialog's heading arg is getting passed as the "Sizing" heading arg (instead of the
16
16
// TODO: word "Sizing"). We should be able to remove this arg once that no longers happens.
17
17
heading : window . isChromatic ( ) ? "Lorem ipsum dolor sit amet, consectetur adipiscing elit" : args . heading ,
18
18
customStyles : {
@@ -37,13 +37,15 @@ export const DialogGroup = Variants({
37
37
} ,
38
38
{
39
39
testHeading : "With hero/cover image" ,
40
+ hasHeroImage : true ,
40
41
heroImageUrl : "example-card-portrait.png" ,
41
42
wrapperStyles : {
42
43
"background-color" : "var(--spectrum-gray-50)"
43
44
} ,
44
45
} ,
45
46
{
46
47
testHeading : "With hero/cover image, dismissible" ,
48
+ hasHeroImage : true ,
47
49
heroImageUrl : "example-card-portrait.png" ,
48
50
isDismissible : true ,
49
51
hasFooter : false ,
0 commit comments