Skip to content

Improve accessibility with semantic HTML and ARIA labels#43

Merged
dinooo13 merged 9 commits into
mainfrom
claude/fix-issues-YrBNo
May 9, 2026
Merged

Improve accessibility with semantic HTML and ARIA labels#43
dinooo13 merged 9 commits into
mainfrom
claude/fix-issues-YrBNo

Conversation

@dinooo13
Copy link
Copy Markdown
Owner

@dinooo13 dinooo13 commented May 9, 2026

Summary

This PR enhances the accessibility of the landing page and lab cards by implementing semantic HTML structures and adding descriptive ARIA labels.

Key Changes

  • Hero component links: Refactored the footer links section to use semantic <nav> and <ul>/<li> elements instead of a generic <div>, with an appropriate aria-label for screen readers
  • Lab card button: Added a descriptive aria-label to the "View details" button that includes the lab title for better context when using assistive technologies

Implementation Details

  • The navigation landmark now properly identifies the social and contact links section for users of assistive technologies
  • List items are now semantically correct for link collections
  • The lab card button label is now contextual, helping users understand which lab's details they're viewing when navigating with a screen reader

https://claude.ai/code/session_01McFq4WpibdejyTF9WPHYrv

Wrap hero social links in <nav>/<ul>/<li> for semantic list markup,
and add unique aria-label to each "View details" button to distinguish
links with the same text pointing to different destinations.

https://claude.ai/code/session_01McFq4WpibdejyTF9WPHYrv
…abel

aria-label prop forwarding via UButton is unreliable; sr-only text in the
slot is guaranteed to reach the DOM and be announced by screen readers.

https://claude.ai/code/session_01McFq4WpibdejyTF9WPHYrv
aria-labelledby caused the name to be announced twice. Empty alt correctly
marks the image as redundant since the name is already in adjacent text.

https://claude.ai/code/session_01McFq4WpibdejyTF9WPHYrv
… markup

Mirrors the labs detail page fix; tools skip nav landmarks when checking
for redundant links, so this also resolves the back-link redundancy warning.

https://claude.ai/code/session_01McFq4WpibdejyTF9WPHYrv
@dinooo13 dinooo13 merged commit 033ccd2 into main May 9, 2026
8 checks passed
@dinooo13 dinooo13 deleted the claude/fix-issues-YrBNo branch May 9, 2026 22:01
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.

2 participants