Skip to content

Commit 376cd57

Browse files
committed
[dropdown-width] try configuring viewport the old way for chromatic
1 parent cd13901 commit 376cd57

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const parameters: Preview["parameters"] = {
125125
},
126126
},
127127
viewport: {
128-
options: wbViewports,
128+
viewports: wbViewports,
129129
},
130130
};
131131

__docs__/wonder-blocks-dropdown/action-menu-testing-snapshots.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ export const Scenarios: Story = {
7979
</ScenariosLayout>
8080
);
8181
},
82-
globals: {
82+
parameters: {
8383
viewport: {
84-
value: "small",
84+
defaultViewport: "small",
8585
},
8686
},
8787
};

__docs__/wonder-blocks-dropdown/multi-select-testing-snapshots.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ export const Scenarios: Story = {
173173
</ScenariosLayout>
174174
);
175175
},
176-
globals: {
176+
parameters: {
177177
viewport: {
178-
value: "small",
178+
defaultViewport: "small",
179179
},
180180
},
181181
};

__docs__/wonder-blocks-dropdown/single-select-testing-snapshots.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ export const Scenarios: Story = {
184184
</ScenariosLayout>
185185
);
186186
},
187-
globals: {
187+
parameters: {
188188
viewport: {
189-
value: "small",
189+
defaultViewport: "small",
190190
},
191191
},
192192
};

0 commit comments

Comments
 (0)