Skip to content

Commit

Permalink
chore: Add proper textual name, role and state to breadcrumb last item
Browse files Browse the repository at this point in the history
  • Loading branch information
taheramr committed Feb 6, 2025
1 parent 03d0574 commit 6e75920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/breadcrumb-group/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ type ItemProps = React.HTMLAttributes<HTMLElement> & {
const Item = React.forwardRef<HTMLElement, ItemProps>(
({ anchorAttributes, children, isLast, ...itemAttributes }, ref) =>
isLast ? (
<span ref={ref} className={styles.anchor} {...itemAttributes}>
<span role="link" aria-disabled={true} ref={ref} className={styles.anchor} {...itemAttributes}>
{children}
</span>
) : (
Expand Down

0 comments on commit 6e75920

Please sign in to comment.