Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <63502271+2nikhiltom@users.noreply.github.com>
guidari and 2nikhiltom authored Sep 10, 2024
1 parent 68799ee commit caba17c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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>
) : (

0 comments on commit caba17c

Please sign in to comment.