Skip to content

Commit 1ec5878

Browse files
docs(divider): remove MDX file to utilize auto-docs
1 parent bf9051c commit 1ec5878

File tree

2 files changed

+10
-60
lines changed

2 files changed

+10
-60
lines changed

components/divider/stories/divider.mdx

Lines changed: 0 additions & 42 deletions
This file was deleted.

components/divider/stories/divider.stories.js

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export default {
4747
},
4848
};
4949

50+
/**
51+
* The default size for divider is medium.
52+
*/
5053
export const Default = Template.bind({});
5154
Default.args = {};
5255
Default.parameters = {
@@ -85,6 +88,7 @@ const AllDividerSizes = (args) => html`
8588

8689
/*
8790
* Stories for the MDX "Docs" only.
91+
* "storyName" refers to the display name/heading for a component
8892
*/
8993
export const Large = Template.bind({});
9094
Large.tags = ["docs-only"];
@@ -114,25 +118,11 @@ Small.parameters = {
114118
},
115119
};
116120

117-
export const StaticWhite = Template.bind({});
118-
StaticWhite.tags = ["docs-only"];
119-
StaticWhite.args = {
120-
staticColor: "white",
121-
};
122-
StaticWhite.parameters = {
123-
chromatic: { disableSnapshot: true },
124-
};
125-
126-
export const StaticBlack = Template.bind({});
127-
StaticBlack.tags = ["docs-only"];
128-
StaticBlack.args = {
129-
staticColor: "black",
130-
};
131-
StaticBlack.parameters = {
132-
chromatic: { disableSnapshot: true },
133-
};
134-
121+
/**
122+
* When a vertical divider is used inside of a flex container, use `align-self: stretch; height: auto;` on the divider.
123+
*/
135124
export const VerticalGroup = AllDividerSizes.bind({});
125+
VerticalGroup.storyName = "Vertical";
136126
VerticalGroup.tags = ["docs-only"];
137127
VerticalGroup.args = {
138128
vertical: true,
@@ -142,6 +132,7 @@ VerticalGroup.parameters = {
142132
};
143133

144134
export const StaticWhiteGroup = AllDividerSizes.bind({});
135+
StaticWhiteGroup.storyName = "Static white";
145136
StaticWhiteGroup.tags = ["docs-only"];
146137
StaticWhiteGroup.args = {
147138
staticColor: "white",
@@ -151,6 +142,7 @@ StaticWhiteGroup.parameters = {
151142
};
152143

153144
export const StaticBlackGroup = AllDividerSizes.bind({});
145+
StaticBlackGroup.storyName = "Static black";
154146
StaticBlackGroup.tags = ["docs-only"];
155147
StaticBlackGroup.args = {
156148
staticColor: "black",

0 commit comments

Comments
 (0)