Skip to content

Commit ed03400

Browse files
chore(swatch): fix rectangle story name to shape
1 parent 1c55e14 commit ed03400

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/swatch/stories/swatch.stories.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,16 @@ Border.parameters = {
183183
/**
184184
* Swatches can also have 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).
185185
*/
186-
export const Rectangle = Template.bind({});
187-
Rectangle.args = {
186+
export const Shape = Template.bind({});
187+
Shape.args = {
188188
shape: "rectangle",
189189
swatchColor: "rgba(174, 216, 230, 0.25)",
190190
};
191-
Rectangle.tags = ["!dev"];
192-
Rectangle.parameters = {
191+
Shape.tags = ["!dev"];
192+
Shape.parameters = {
193193
chromatic: { disableSnapshot: true },
194194
};
195+
Shape.storyName = "Shape - rectangle";
195196

196197
/**
197198
* A swatch will appear "empty" when its preview is undefined, for instance when the image or gradient is undefined, or when a swatch color is transparent. The `.is-nothing` class is applied to the swatch in these cases. Implementations should ensure that the default border style is applied when a swatch is empty.

0 commit comments

Comments
 (0)