Skip to content

Commit f48db01

Browse files
committed
fix(alert dialog): adjust treatment to match designs for error + warning
1 parent 7a4d68f commit f48db01

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

components/alertdialog/stories/template.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,18 @@ const buttonMap = {
2525
label: "Enable",
2626
variant: "accent"
2727
}],
28-
warning: [{
28+
information: [{
2929
variant: "secondary",
3030
treatment: "outline",
31-
label: "Cancel"
32-
}, {
33-
treatment: "outline",
34-
label: "Continue",
35-
variant: "primary"
36-
}],
37-
error: [{
31+
label: "No, thanks"
32+
},{
3833
variant: "secondary",
3934
treatment: "outline",
40-
label: "Cancel"
35+
label: "Remind me later"
4136
}, {
37+
variant: "primary",
4238
treatment: "outline",
43-
label: "Continue",
44-
variant: "primary"
39+
label: "Rate now",
4540
}],
4641
destructive: [{
4742
variant: "secondary",
@@ -52,18 +47,23 @@ const buttonMap = {
5247
label: "Delete",
5348
variant: "negative"
5449
}],
55-
information: [{
50+
warning: [{
5651
variant: "secondary",
5752
treatment: "outline",
58-
label: "No, thanks"
59-
},{
53+
label: "Cancel"
54+
}, {
55+
treatment: "fill",
56+
label: "Continue",
57+
variant: "primary"
58+
}],
59+
error: [{
6060
variant: "secondary",
6161
treatment: "outline",
62-
label: "Remind me later"
62+
label: "Cancel"
6363
}, {
64-
variant: "primary",
65-
treatment: "outline",
66-
label: "Rate now",
64+
treatment: "fill",
65+
label: "Continue",
66+
variant: "primary"
6767
}],
6868
};
6969

0 commit comments

Comments
 (0)