Skip to content

Commit

Permalink
chore: Add Accessibility Improvements to Links (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
supunsathsara authored Oct 21, 2023
1 parent 61e7abf commit 5bd77cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/SideNavbar/SideNavbarCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SideNavbarCategory: FC<{
<Link
className="flex w-full cursor-pointer justify-between py-2"
onClick={handleToggle}
aria-label="toggle category"
aria-label={`toggle ${category.toLowerCase()} category`}
href={`/${category}`}
>
<h1 className="font-bold uppercase w-4/5 truncate">
Expand Down
1 change: 1 addition & 0 deletions pages/[category]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const CategoryPage = () => {
<Link
key={i}
href={`/${category}${subcat.url}`}
aria-label={`Explore ${subcat.name}`}
className={`border-2 dark:border-theme-primary rounded-md bg-transparent dark:text-theme-primary text-text-secondary px-3 py-1 text-md capitalize hover:border-dashed hover:text-dark-primary shadow-lg`}
>
{subcat.name}
Expand Down

1 comment on commit 5bd77cc

@vercel
Copy link

@vercel vercel bot commented on 5bd77cc Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.