@@ -47,6 +47,9 @@ export default {
47
47
} ,
48
48
} ;
49
49
50
+ /**
51
+ * The default size for divider is medium.
52
+ */
50
53
export const Default = Template . bind ( { } ) ;
51
54
Default . args = { } ;
52
55
@@ -78,6 +81,7 @@ const AllDividerSizes = (args) => html`
78
81
79
82
/*
80
83
* Stories for the MDX "Docs" only.
84
+ * "storyName" refers to the display name/heading for a component
81
85
*/
82
86
export const Large = Template . bind ( { } ) ;
83
87
Large . tags = [ "docs-only" ] ;
@@ -97,25 +101,11 @@ Small.parameters = {
97
101
chromatic : { disableSnapshot : true } ,
98
102
} ;
99
103
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
+ */
118
107
export const VerticalGroup = AllDividerSizes . bind ( { } ) ;
108
+ VerticalGroup . storyName = "Vertical" ;
119
109
VerticalGroup . tags = [ "docs-only" ] ;
120
110
VerticalGroup . args = {
121
111
vertical : true ,
@@ -125,6 +115,7 @@ VerticalGroup.parameters = {
125
115
} ;
126
116
127
117
export const StaticWhiteGroup = AllDividerSizes . bind ( { } ) ;
118
+ StaticWhiteGroup . storyName = "Static white" ;
128
119
StaticWhiteGroup . tags = [ "docs-only" ] ;
129
120
StaticWhiteGroup . args = {
130
121
staticColor : "white" ,
@@ -134,6 +125,7 @@ StaticWhiteGroup.parameters = {
134
125
} ;
135
126
136
127
export const StaticBlackGroup = AllDividerSizes . bind ( { } ) ;
128
+ StaticBlackGroup . storyName = "Static black" ;
137
129
StaticBlackGroup . tags = [ "docs-only" ] ;
138
130
StaticBlackGroup . args = {
139
131
staticColor : "black" ,
0 commit comments