Skip to content

Commit

Permalink
Add aria-label to LinkBar items
Browse files Browse the repository at this point in the history
  • Loading branch information
mpanne committed Feb 3, 2025
1 parent 4431de2 commit 48455f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dito/app/components/LinkBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "@remix-run/react";

const LinkBar = <T extends { url: string }>({
const LinkBar = <T extends { url: string; title: string }>({
elements,
currentElement,
}: {
Expand All @@ -17,6 +17,7 @@ const LinkBar = <T extends { url: string }>({
<Link
key={element.url}
to={element.url}
aria-label={element.title}
className={`h-6 flex-1 transition-all duration-300 ${
index <= currentIndex ? "bg-blue-800" : "bg-blue-300"
}`}
Expand Down

0 comments on commit 48455f8

Please sign in to comment.