@@ -113,7 +113,9 @@ let ListItem = props => {
113
113
}
114
114
115
115
return (
116
- < li className = { classNames ( 'slds-path__item' , props . className ) } role = "presentation" >
116
+ < li className = { classNames ( 'slds-path__item' , props . className , {
117
+ 'slds-is-active' : props . tabIndex
118
+ } ) } role = "presentation" >
117
119
< a
118
120
aria-controls = { props . ariaControls }
119
121
aria-expanded = { ariaExpanded }
@@ -202,6 +204,54 @@ let CoachExample2 = props =>
202
204
/// ///////////////////////////////////////////
203
205
204
206
let Default = props =>
207
+ < Coach >
208
+ < Path >
209
+ < div className = "slds-grid slds-path__scroller-container" >
210
+ < ListMain listRole = "listbox" >
211
+ < ListItem className = "slds-is-current" id = { path1Id } role = "option" tabIndex = "0" >
212
+ < span className = "slds-path__stage" >
213
+ < SvgIcon className = "slds-icon slds-icon_x-small" sprite = "utility" symbol = "check" />
214
+ < span className = "slds-assistive-text" > Stage Complete</ span >
215
+ </ span >
216
+ < span className = "slds-path__title" > Contacted</ span >
217
+ </ ListItem >
218
+ < ListItem className = "slds-is-incomplete" id = { path2Id } role = "option" >
219
+ < span className = "slds-path__stage" >
220
+ < SvgIcon className = "slds-icon slds-icon_x-small" sprite = "utility" symbol = "check" />
221
+ < span className = "slds-assistive-text" > Stage Complete</ span >
222
+ </ span >
223
+ < span className = "slds-path__title" > Open</ span >
224
+ </ ListItem >
225
+ < ListItem className = "slds-is-incomplete" id = { path3Id } role = "option" >
226
+ < span className = "slds-path__stage" >
227
+ < SvgIcon className = "slds-icon slds-icon_x-small" sprite = "utility" symbol = "check" />
228
+ < span className = "slds-assistive-text" > Current Stage:</ span >
229
+ </ span >
230
+ < span className = "slds-path__title" > Unqualified</ span >
231
+ </ ListItem >
232
+ < ListItem className = "slds-is-incomplete" id = { path4Id } role = "option" >
233
+ < span className = "slds-path__stage" >
234
+ < SvgIcon className = "slds-icon slds-icon_x-small" sprite = "utility" symbol = "check" />
235
+ </ span >
236
+ < span className = "slds-path__title" > Nurturing</ span >
237
+ </ ListItem >
238
+ < ListItem className = "slds-is-incomplete" id = { path5Id } role = "option" >
239
+ < span className = "slds-path__stage" >
240
+ < SvgIcon className = "slds-icon slds-icon_x-small" sprite = "utility" symbol = "check" />
241
+ </ span >
242
+ < span className = "slds-path__title" > Closed</ span >
243
+ </ ListItem >
244
+ </ ListMain >
245
+ </ div >
246
+ < div className = "slds-grid slds-path__action" >
247
+ < span className = "slds-path__stage-name" > Stage: Unqualified</ span >
248
+ < Action > < SvgIcon className = "slds-button__icon slds-button__icon_left" sprite = "utility" symbol = "check" />
249
+ Mark Status as Complete</ Action >
250
+ </ div >
251
+ </ Path >
252
+ </ Coach > ;
253
+
254
+ let PathNoCoachStageSelected = props =>
205
255
< Coach >
206
256
< Path >
207
257
< div className = "slds-grid slds-path__scroller-container" >
@@ -913,6 +963,11 @@ export default (
913
963
) ;
914
964
915
965
export let states = [
966
+ {
967
+ id : 'later-stage' ,
968
+ label : 'With Different Stage Selected - without coaching' ,
969
+ element : < PathNoCoachStageSelected />
970
+ } ,
916
971
{
917
972
id : 'with-coaching' ,
918
973
label : 'With Coaching Available' ,
@@ -925,7 +980,7 @@ export let states = [
925
980
} ,
926
981
{
927
982
id : 'different-coaching' ,
928
- label : 'With Different Stage Selected' ,
983
+ label : 'With Different Stage Selected - with coaching ' ,
929
984
element : < PathStageSelected />
930
985
} ,
931
986
{
0 commit comments