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
Copy file name to clipboardExpand all lines: components/swatch/stories/swatch.stories.js
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,9 @@ Sizing.parameters = {
171
171
*/
172
172
exportconstDisabled=DisabledGroup.bind({});
173
173
Disabled.tags=["!dev"];
174
+
Disabled.parameters={
175
+
chromatic: {disableSnapshot: true},
176
+
};
174
177
175
178
/**
176
179
* Default rounding and full rounding are usually used when a swatch is presented by itself near other components. A rounding of “none” is used in a swatch group to help minimize the Hermann grid illusion that happens at the intersections of white space in the group.
@@ -189,6 +192,9 @@ Selected.args = {
189
192
isSelected: true,
190
193
};
191
194
Selected.tags=["!dev"];
195
+
Selected.parameters={
196
+
chromatic: {disableSnapshot: true},
197
+
};
192
198
193
199
/**
194
200
* By default, swatches have a border. However, when swatches are used within a swatch group, there are additional border considerations.
@@ -197,6 +203,9 @@ Selected.tags = ["!dev"];
197
203
*/
198
204
exportconstBorder=BorderGroup.bind({});
199
205
Border.tags=["!dev"];
206
+
Border.parameters={
207
+
chromatic: {disableSnapshot: true},
208
+
};
200
209
201
210
/**
202
211
* Swatches can have a square or a rectangle shape with an aspect ratio of 2:1. The square shape is the default and is used in swatch groups (e.g., a palette of colors).
@@ -206,10 +215,16 @@ Rectangle.args = {
206
215
isRectangle: true,
207
216
};
208
217
Rectangle.tags=["!dev"];
218
+
Rectangle.parameters={
219
+
chromatic: {disableSnapshot: true},
220
+
};
209
221
210
222
exportconstNothing=NothingGroup.bind({});
211
223
Nothing.args={};
212
224
Nothing.tags=["!dev"];
225
+
Nothing.parameters={
226
+
chromatic: {disableSnapshot: true},
227
+
};
213
228
214
229
/**
215
230
* When a swatch represents multiple values that are not identical, the preview shows a `gray-50` fill and a dash UI icon.
Copy file name to clipboardExpand all lines: components/swatchgroup/stories/swatchgroup.stories.js
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -131,26 +131,38 @@ Compact.args = {
131
131
density: "compact",
132
132
};
133
133
Compact.tags=["!dev"];
134
+
Compact.parameters={
135
+
chromatic: {disableSnapshot: true},
136
+
};
134
137
135
138
exportconstSpacious=Template.bind({});
136
139
Spacious.args={
137
140
density: "spacious",
138
141
};
139
142
Spacious.tags=["!dev"];
143
+
Spacious.parameters={
144
+
chromatic: {disableSnapshot: true},
145
+
};
140
146
141
147
/**
142
148
* Only use rounded swatches if there is a single row.
143
149
*/
144
150
exportconstRounding=RoundingTemplate.bind({});
145
151
Rounding.args={};
146
152
Rounding.tags=["!dev"];
153
+
Rounding.parameters={
154
+
chromatic: {disableSnapshot: true},
155
+
};
147
156
148
157
/**
149
158
* Use any size swatches as necessary. The medium size is the default option. This only affects the size of each individual swatch, not the spacing between them.
150
159
*/
151
160
exportconstSizing=SizingTemplate.bind({});
152
161
Sizing.args={};
153
162
Sizing.tags=["!dev"];
163
+
Sizing.parameters={
164
+
chromatic: {disableSnapshot: true},
165
+
};
154
166
155
167
/**
156
168
* In this example, the lower contrast swatches properly utilize the `.spectrum-Swatch--lightBorder` class.
* The quiet table has a transparent background and no borders on the left and right.
@@ -236,6 +251,9 @@ Quiet.args = {
236
251
isQuiet: true,
237
252
};
238
253
Quiet.tags=["!dev"];
254
+
Quiet.parameters={
255
+
chromatic: {disableSnapshot: true},
256
+
};
239
257
240
258
exportconstQuietMultiSelect=Template.bind({});
241
259
QuietMultiSelect.args={
@@ -244,6 +262,9 @@ QuietMultiSelect.args = {
244
262
};
245
263
QuietMultiSelect.tags=["!dev"];
246
264
QuietMultiSelect.storyName="Quiet multi-select";
265
+
QuietMultiSelect.parameters={
266
+
chromatic: {disableSnapshot: true},
267
+
};
247
268
248
269
/**
249
270
* The standard table can display column dividers by including the `.spectrum-Table-cell--divider` class with `.spectrum-Table-cell`. Use sparingly to group related content.
* Tables can have a summary row to show totals, at either the top or the bottom of the table. This example shows both the optional summary row, and a row marked as selected.
@@ -299,6 +323,9 @@ SummaryAndSelected.args = {
299
323
};
300
324
SummaryAndSelected.tags=["!dev"];
301
325
SummaryAndSelected.storyName="Summary and selected";
326
+
SummaryAndSelected.parameters={
327
+
chromatic: {disableSnapshot: true},
328
+
};
302
329
303
330
/**
304
331
* Tables can style one or more rows as section headers.
* A table can also be made up of `div` tags if needed, instead of a `<table>`. This example uses both the div markup, and the scrollable wrapper.
@@ -394,6 +430,9 @@ DivsScrollable.args = {
394
430
rowItems: ExampleRowItems,
395
431
};
396
432
DivsScrollable.tags=["!dev"];
433
+
DivsScrollable.parameters={
434
+
chromatic: {disableSnapshot: true},
435
+
};
397
436
398
437
/**
399
438
* In a table with collapsible rows, all child items must have columns that match the parent items. If they don’t, consider using multiple drill-in tables, [Miller columns](/docs/components-miller-columns--docs), or [breadcrumbs](/docs/components-breadcrumbs--docs) instead.
* In addition to the overall table, individual rows can be designated as a drop target to accept dropped content. Only one dropzone row should show at a time, but this example sets multiple at different parts of the table to test that they all display the same.
0 commit comments