Skip to content

Commit 7a4d68f

Browse files
committed
chore(alert dialog): add vertical button display test + story
1 parent ceb4433 commit 7a4d68f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

components/alertdialog/stories/alertdialog.stories.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,12 @@ Scroll.args = {
184184
Scroll.parameters = {
185185
chromatic: { disableSnapshot: true },
186186
};
187+
188+
export const VerticalButtons = Template.bind({});
189+
VerticalButtons.tags = ["!dev"];
190+
VerticalButtons.args = {
191+
buttonsAreVertical: true,
192+
isOpen: true,
193+
heading: "Vertical button group",
194+
content: "This is what an alert dialog looks like with buttons arranged vertically.",
195+
};

components/alertdialog/stories/alertdialog.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ export const AlertDialogGroup = Variants({
1212
"min-block-size": "auto",
1313
},
1414
testData: [{}, {
15+
heading: "Vertical button group",
16+
content: "This is what an alert dialog looks like with buttons arranged vertically.",
17+
buttonsAreVertical: true,
18+
}, {
1519
variant: "warning",
1620
heading: "Unverified format",
1721
content: "This format has not been verified and may not be viewable for some users. Do you want to continue publishing?",

0 commit comments

Comments
 (0)