Skip to content

Commit 05c05f7

Browse files
guidaritay1orjones
andauthored
fix: fixed aira-current in breadcrumb (#18155)
* fix: fixed aira-current in breadcrumb * fix: remvoed console log --------- Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
1 parent 424f22e commit 05c05f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react/src/components/Breadcrumb/BreadcrumbItem.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ const BreadcrumbItem: ForwardRefReturn<HTMLLIElement, BreadcrumbItemProps> =
8484
{children}
8585
</Link>
8686
) : (
87-
<Text className={`${prefix}--link`}>{children}</Text>
87+
<Text
88+
aria-current={ariaCurrent || isCurrentPage}
89+
className={`${prefix}--link`}>
90+
{children}
91+
</Text>
8892
)}
8993
</li>
9094
);

0 commit comments

Comments
 (0)