Skip to content

Conversation

@heyjosephme
Copy link

@heyjosephme heyjosephme commented Oct 19, 2025

Summary

Implements skip-to-content functionality to help keyboard and screen reader users bypass navigation links and jump directly to the main content.

Changes

  • Added "Skip to Content" link at the top of each page (before navbar)
  • Link is visually hidden by default but appears when focused via keyboard (Tab)
  • Styled with site brand colors (#03777e teal) for consistency
  • Added id="main-content" and tabindex="-1" to main element for proper focus management
  • Uses modern clip-path technique for accessible element hiding

Testing

To test:

  1. Visit any page on the site
  2. Press Tab - the "Skip to Content" link should appear at the top
  3. Press Enter - should jump to main content
  4. Press Tab again without activating - should continue to navigation items

Screenshot

output

Notes

The skip link styling uses the site's primary teal color. Let me know if you'd prefer different styling or positioning!

Fixes #72

🤖 Generated with Claude Code

Implements skip-to-content link to help keyboard and screen reader users
bypass navigation and jump directly to main content.

Changes:
- Added "Skip to Content" link in header (hidden until focused)
- Added id="main-content" and tabindex="-1" to main element
- Styled skip link to be visible on keyboard focus with brand colors
- Uses modern clip-path technique for accessible hiding

Fixes rubyforgood#72

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

Add skip links for improved accessibility

1 participant