Skip to content

Commit c165aed

Browse files
docs(divider): remove MDX file to utilize auto-docs
1 parent 186e70d commit c165aed

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

@@ -78,6 +81,7 @@ const AllDividerSizes = (args) => html`
7881

7982
/*
8083
* Stories for the MDX "Docs" only.
84+
* "storyName" refers to the display name/heading for a component
8185
*/
8286
export const Large = Template.bind({});
8387
Large.tags = ["docs-only"];
@@ -97,25 +101,11 @@ Small.parameters = {
97101
chromatic: { disableSnapshot: true },
98102
};
99103

100-
export const StaticWhite = Template.bind({});
101-
StaticWhite.tags = ["docs-only"];
102-
StaticWhite.args = {
103-
staticColor: "white",
104-
};
105-
StaticWhite.parameters = {
106-
chromatic: { disableSnapshot: true },
107-
};
108-
109-
export const StaticBlack = Template.bind({});
110-
StaticBlack.tags = ["docs-only"];
111-
StaticBlack.args = {
112-
staticColor: "black",
113-
};
114-
StaticBlack.parameters = {
115-
chromatic: { disableSnapshot: true },
116-
};
117-
104+
/**
105+
* When a vertical divider is used inside of a flex container, use `align-self: stretch; height: auto;` on the divider.
106+
*/
118107
export const VerticalGroup = AllDividerSizes.bind({});
108+
VerticalGroup.storyName = "Vertical";
119109
VerticalGroup.tags = ["docs-only"];
120110
VerticalGroup.args = {
121111
vertical: true,
@@ -125,6 +115,7 @@ VerticalGroup.parameters = {
125115
};
126116

127117
export const StaticWhiteGroup = AllDividerSizes.bind({});
118+
StaticWhiteGroup.storyName = "Static white";
128119
StaticWhiteGroup.tags = ["docs-only"];
129120
StaticWhiteGroup.args = {
130121
staticColor: "white",
@@ -134,6 +125,7 @@ StaticWhiteGroup.parameters = {
134125
};
135126

136127
export const StaticBlackGroup = AllDividerSizes.bind({});
128+
StaticBlackGroup.storyName = "Static black";
137129
StaticBlackGroup.tags = ["docs-only"];
138130
StaticBlackGroup.args = {
139131
staticColor: "black",

0 commit comments

Comments
 (0)