Skip to content

Conversation

@huangkevin-apr
Copy link

Issue Description

When running IBM Accessibility Checker (Version 4.0.9) on the showcase page, multiple (49) violations were detected indicating that links in the showcase thumbnail component lack accessible names. This creates barriers for screen reader users who cannot understand the purpose of these links. The checker identified multiple instances of "Hyperlink has no link text, label or image with a text alternative" violations.

Screenshot of Webpage:

image

Violation Report:

image

Solution

Added aria-label attribute to the link element in the ShowcaseThumbnail component, using showcase.name as the accessible label text. This ensures:

  • Screen reader users can clearly understand the destination of each link
  • Compliance with WCAG accessibility standards
  • Improved overall user experience for assistive technology users

Generated Patch of A11YRepair:

diff --git a/src/components/showcase-thumbnail.tsx b/src/components/showcase-thumbnail.tsx
index 1900ca29..854bfd90 100644
--- a/src/components/showcase-thumbnail.tsx
+++ b/src/components/showcase-thumbnail.tsx
@@ -82,7 +82,13 @@ export default function ShowcaseThumbnail({ showcase, priority = false }: { show
         hideVideo();
       }}
     >
-      <a href={showcase.url} target="_blank" rel="noopener noreferrer" className="absolute inset-0 z-10"></a>
+      <a
+        href={showcase.url}
+        target="_blank"
+        rel="noopener noreferrer"
+        className="absolute inset-0 z-10"
+        aria-label={showcase.name}
+      ></a>
       <GridContainer className={clsx("p-2", BEFORE_AND_AFTER_ONLY_IN_FIRST_COLUMN_OF_CURRENT_GRID)}>
         <div className="relative aspect-[672/494] overflow-hidden rounded-xl outline outline-gray-950/5">
           <Image

Added aria-label={showcase.name} attribute to the absolutely positioned link element.

  • Note: The patch submitted in this PR was generated by A11YRepair, an automated Web Accessibility repair tool that I developed to address common accessibility violations in web applications. The generated fixes were manually reviewed and validated before submission.

Fix Before:

image

There are 49 violations - "Hyperlink has no link text, label or image with a text alternative"

Violation Element Example:

<a href="https://cursor.com" target="_blank" rel="noopener noreferrer" class="absolute inset-0 z-10"></a>

Fix After:

image

All 49 violations have been resolved, use the aria-label attribute to point to text visible on the page that identifies the link purpose.

Fixed Violation Element Example:

<a href="https://cursor.com" target="_blank" rel="noopener noreferrer" class="absolute inset-0 z-10" aria-label="Cursor"></a>

@vercel
Copy link

vercel bot commented Jan 8, 2026

@huangkevin-apr is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant