You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(alertbanner): adjust storybook template spacing and decorator
Improves spacing in Storybook template, especially the Chromatic only
template. Decorator and wrapper styles are modeled after those used in
Action button, so they look more similar. Previously the layout was a
little cramped and the "detail" elements were missing their margins
because they were display inline.
content: ["All variants with button, including wrapping"],
83
-
})}
84
-
<div
85
-
style=${styleMap({
86
-
display: "flex",
87
-
flexDirection: "column",
88
-
gap: ".3rem",
89
-
})}
90
-
>
91
-
${Template(args)}
92
-
${Template({
93
-
...args,
94
-
variant: "info",
95
-
text: "Your trial will expire in 3 days. Once it expires your files will be saved and ready for you to open again once you have purchased the software.",
96
-
})}
97
-
${Template({
98
-
...args,
99
-
variant: "negative",
100
-
text: "Connection interupted. Check your network to continue.",
101
-
})}
102
-
</div>
103
-
</div>
104
-
<divclass="spectrum-Typography">
105
-
${Typography({
106
-
semantics: "detail",
107
-
size: "l",
108
-
content: ["All variants without button"],
109
-
})}
110
-
<div
111
-
style=${styleMap({
112
-
display: "flex",
113
-
flexDirection: "column",
114
-
gap: ".3rem",
115
-
})}
116
-
>
117
-
${Template({
118
-
...args,
119
-
actionButtonText: "",
120
-
})}
121
-
${Template({
122
-
...args,
123
-
variant: "info",
124
-
text: "Your trial will expire in 3 days. Once it expires your files will be saved and ready for you to open again once you have purchased the software.",
125
-
actionButtonText: "",
126
-
})}
127
-
${Template({
128
-
...args,
129
-
variant: "negative",
130
-
text: "Connection interupted. Check your network to continue.",
content: ["All variants with button, including wrapping"],
104
+
})}
105
+
<div
106
+
style=${styleMap({
107
+
display: "flex",
108
+
flexDirection: "column",
109
+
gap: "0.75rem",
110
+
})}
111
+
>
112
+
${Template(args)}
113
+
${Template({
114
+
...args,
115
+
variant: "info",
116
+
text: "Your trial will expire in 3 days. Once it expires your files will be saved and ready for you to open again once you have purchased the software.",
117
+
})}
118
+
${Template({
119
+
...args,
120
+
variant: "negative",
121
+
text: "Connection interupted. Check your network to continue.",
122
+
})}
123
+
${Template({
124
+
...args,
125
+
isOpen: false,
126
+
text: "This alert banner should never be displayed in VRTs. This is to test that it is not displayed when there is no is-open class applied.",
127
+
})}
128
+
</div>
129
+
</div>
130
+
<divclass="spectrum-Typography">
131
+
${Typography({
132
+
semantics: "detail",
133
+
size: "l",
134
+
content: ["All variants without button"],
135
+
})}
136
+
<div
137
+
style=${styleMap({
138
+
display: "flex",
139
+
flexDirection: "column",
140
+
gap: "0.75rem",
141
+
})}
142
+
>
143
+
${Template({
144
+
...args,
145
+
actionButtonText: "",
146
+
})}
147
+
${Template({
148
+
...args,
149
+
variant: "info",
150
+
text: "Your trial will expire in 3 days. Once it expires your files will be saved and ready for you to open again once you have purchased the software.",
151
+
actionButtonText: "",
152
+
})}
153
+
${Template({
154
+
...args,
155
+
variant: "negative",
156
+
text: "Connection interupted. Check your network to continue.",
0 commit comments