Skip to content

Commit

Permalink
fix: fixed aira-current in breadcrumb (carbon-design-system#18155)
Browse files Browse the repository at this point in the history
* fix: fixed aira-current in breadcrumb

* fix: remvoed console log

---------

Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
guidari and tay1orjones authored Jan 7, 2025
1 parent 424f22e commit 05c05f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react/src/components/Breadcrumb/BreadcrumbItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ const BreadcrumbItem: ForwardRefReturn<HTMLLIElement, BreadcrumbItemProps> =
{children}
</Link>
) : (
<Text className={`${prefix}--link`}>{children}</Text>
<Text
aria-current={ariaCurrent || isCurrentPage}
className={`${prefix}--link`}>
{children}
</Text>
)}
</li>
);
Expand Down

0 comments on commit 05c05f7

Please sign in to comment.