Skip to content

Commit 6168fae

Browse files
(SalesPath): update markups
1 parent 4fd5c8e commit 6168fae

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

src/scripts/SalesPath.tsx

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export const SalesPathItem: FC<SalesPathItemProps> = (props) => {
8787
{type === 'complete' ? (
8888
<span className='slds-assistive-text'>{completedText}</span>
8989
) : null}
90+
{isCurrent ? (
91+
<span className='slds-assistive-text'>Current Stage:</span>
92+
) : null}
9093
</span>
9194
<span className='slds-path__title'>{title}</span>
9295
</a>
@@ -147,23 +150,33 @@ export const SalesPath = createFC<
147150

148151
return (
149152
<div className={salesPathClassNames} role='application tablist'>
150-
<ul className='slds-path__nav' role='presentation'>
151-
<SalesPathContext.Provider value={ctx}>
152-
{React.Children.map(children, (child, idx) => {
153-
const evaluatedType =
154-
idx === activeIdx
155-
? 'current'
156-
: idx < activeIdx
157-
? 'complete'
158-
: 'incomplete';
159-
return (
160-
<SalesPathTypeContext.Provider value={evaluatedType}>
161-
{child}
162-
</SalesPathTypeContext.Provider>
163-
);
164-
})}
165-
</SalesPathContext.Provider>
166-
</ul>
153+
<div className={classnames('slds-grid', 'slds-path__track')}>
154+
<div
155+
className={classnames('slds-grid', 'slds-path__scroller-container')}
156+
>
157+
<div className='slds-path__scroller'>
158+
<div className='slds-path__scroller_inner'>
159+
<ul className='slds-path__nav' role='presentation'>
160+
<SalesPathContext.Provider value={ctx}>
161+
{React.Children.map(children, (child, idx) => {
162+
const evaluatedType =
163+
idx === activeIdx
164+
? 'current'
165+
: idx < activeIdx
166+
? 'complete'
167+
: 'incomplete';
168+
return (
169+
<SalesPathTypeContext.Provider value={evaluatedType}>
170+
{child}
171+
</SalesPathTypeContext.Provider>
172+
);
173+
})}
174+
</SalesPathContext.Provider>
175+
</ul>
176+
</div>
177+
</div>
178+
</div>
179+
</div>
167180
</div>
168181
);
169182
},

0 commit comments

Comments
 (0)