Skip to content

Commit c6b33c4

Browse files
Merge pull request #1477 from ASU/uds-1631-breadcrumbs
fix(unity-react-core): "Current Page" Text State Change to Plain Text
2 parents 8abc118 + 38b2d02 commit c6b33c4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/unity-react-core/src/components/Breadcrumbs/Breadcrumbs.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export const Breadcrumbs: React.FC<BreadcrumbsProps> = ({
3131
className={cx("breadcrumb-item", { active: item.active })}
3232
key={item.href}
3333
>
34-
<a href={item.href}>{item.label}</a>
34+
{
35+
/* UDS-1851 - active page should not be link */
36+
item.active ? <span>{item.label}</span> : <a href={item.href}>{item.label}</a>
37+
}
3538
</li>
3639
))}
3740
</ol>

0 commit comments

Comments
 (0)