Skip to content

Commit

Permalink
fix: Fixed aria-current in BreadcrumbItem (#17311)
Browse files Browse the repository at this point in the history
* fix: fixed aria-current

* fix: fixed test to match the new stories

* fix: fixed changes in storybook

---------

Co-authored-by: Nikhil Tomar <[email protected]>
  • Loading branch information
guidari and 2nikhiltom authored Sep 10, 2024
1 parent 890d9b5 commit ac90647
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const BreadcrumbItem: ForwardRefReturn<HTMLLIElement, BreadcrumbItemProps> =
return (
<li className={className} ref={ref} {...rest}>
{href ? (
<Link href={href} aria-current={ariaCurrent}>
<Link href={href} aria-current={ariaCurrent || isCurrentPage}>
{children}
</Link>
) : (
Expand Down

0 comments on commit ac90647

Please sign in to comment.