Skip to content

tags missing alt attributes – L#443

Merged
Junman140 merged 2 commits into
Pi-Defi-world:devfrom
Sundriveauto:dev
Jun 8, 2026
Merged

tags missing alt attributes – L#443
Junman140 merged 2 commits into
Pi-Defi-world:devfrom
Sundriveauto:dev

Conversation

@Sundriveauto
Copy link
Copy Markdown
Contributor

@Sundriveauto Sundriveauto commented Jun 1, 2026

Closes #342

Closes #344

Multiple pages: Decorative or illustrative images lack alt="" and content images lack descriptive alt text, failing WCAG 1.1.1 (Non-text Content)

Summary by CodeRabbit

  • Bug Fixes
    • Improved image alt text on the 404 page for better clarity.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

Image alt text on the 404 NotFound page is updated from "ACBU" to "ACBU logo" to provide a more descriptive label for the logo image, addressing WCAG 1.1.1 non-text content requirements.

Changes

404 Page Accessibility

Layer / File(s) Summary
404 Page Logo Alt Text
app/not-found.tsx
The next/image component alt attribute is updated from "ACBU" to "ACBU logo" on the NotFound page to improve image accessibility.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Poem

🐰 A logo once bare, now speaks its name clear,
"ACBU" alone, now "ACBU logo"—the fix is here!
Accessibility blooms, from alt text so small,
One humble phrase helps screen readers see all! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR partially addresses #342 by updating alt text for the not-found logo, but does not implement the skip-to-content link requirement from #344. Either implement the skip-to-content link feature from #344 in this PR, or create a separate PR to address that requirement.
Title check ❓ Inconclusive The title 'tags missing alt attributes – L' is generic and vague, referring to HTML tags without specifying the actual change made in this PR (updating alt text for the not-found logo). Revise the title to be more specific, such as 'Improve alt text for not-found page logo to meet WCAG 1.1.1' to clearly describe the main change.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Out of Scope Changes check ✅ Passed The change is in scope; updating the alt text from 'ACBU' to 'ACBU logo' directly addresses issue #342's requirement for descriptive alt text.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
app/not-found.tsx (1)

19-19: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Add aria-hidden to decorative icons for screen reader accessibility.

The FileQuestion and Home icons are purely decorative (they don't convey information beyond the surrounding text). Adding aria-hidden="true" prevents screen readers from announcing them unnecessarily, improving the experience for screen reader users and aligning with WCAG best practices.

♿ Proposed fix to hide decorative icons from screen readers
       <div className="rounded-full bg-primary/10 p-4">
-        <FileQuestion className="h-10 w-10 text-primary" />
+        <FileQuestion className="h-10 w-10 text-primary" aria-hidden="true" />
       </div>
       <Button asChild>
         <Link href="/">
-          <Home className="w-4 h-4 mr-2" />
+          <Home className="w-4 h-4 mr-2" aria-hidden="true" />
           Go to dashboard
         </Link>
       </Button>

Also applies to: 34-34

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/not-found.tsx` at line 19, The FileQuestion and Home icon elements are
decorative and should be hidden from assistive tech; update the JSX for the
FileQuestion component (currently <FileQuestion className="h-10 w-10
text-primary" />) and the Home icon at the other occurrence to include
aria-hidden="true" so screen readers ignore them, e.g., add the aria-hidden prop
to those components and ensure you do not remove existing className or other
props.
🧹 Nitpick comments (1)
app/not-found.tsx (1)

11-11: ⚡ Quick win

Good improvement to alt text, consider expanding the acronym.

The change from "ACBU" to "ACBU logo" makes the alt text more descriptive and better satisfies WCAG 1.1.1. If "ACBU" is an acronym, consider spelling it out for screen reader users (e.g., "Automotive Components Business Unit logo") to provide maximum clarity, though the current text is acceptable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@app/not-found.tsx` at line 11, Update the image alt text to expand the
acronym for screen readers: locate the JSX img element currently using alt="ACBU
logo" (in the NotFound component / app/not-found.tsx) and replace it with a more
descriptive string that spells out the acronym and retains the short form, e.g.,
"Automotive Components Business Unit (ACBU) logo".
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@app/not-found.tsx`:
- Line 19: The FileQuestion and Home icon elements are decorative and should be
hidden from assistive tech; update the JSX for the FileQuestion component
(currently <FileQuestion className="h-10 w-10 text-primary" />) and the Home
icon at the other occurrence to include aria-hidden="true" so screen readers
ignore them, e.g., add the aria-hidden prop to those components and ensure you
do not remove existing className or other props.

---

Nitpick comments:
In `@app/not-found.tsx`:
- Line 11: Update the image alt text to expand the acronym for screen readers:
locate the JSX img element currently using alt="ACBU logo" (in the NotFound
component / app/not-found.tsx) and replace it with a more descriptive string
that spells out the acronym and retains the short form, e.g., "Automotive
Components Business Unit (ACBU) logo".

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2c91e248-abf5-4d12-b5fa-235e0c9d8698

📥 Commits

Reviewing files that changed from the base of the PR and between 777a67b and 082213b.

📒 Files selected for processing (1)
  • app/not-found.tsx

@Junman140 Junman140 merged commit 340d7b7 into Pi-Defi-world:dev Jun 8, 2026
1 of 2 checks passed
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.

No skip-to-content link for keyboard navigation – L <img> tags missing alt attributes – L

2 participants