Add skip links for improved keyboard navigation accessibility#73
Open
heyjosephme wants to merge 1 commit intorubyforgood:mainfrom
Open
Add skip links for improved keyboard navigation accessibility#73heyjosephme wants to merge 1 commit intorubyforgood:mainfrom
heyjosephme wants to merge 1 commit intorubyforgood:mainfrom
Conversation
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 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements skip-to-content functionality to help keyboard and screen reader users bypass navigation links and jump directly to the main content.
Changes
id="main-content"andtabindex="-1"to main element for proper focus managementclip-pathtechnique for accessible element hidingTesting
To test:
Tab- the "Skip to Content" link should appear at the topEnter- should jump to main contentTabagain without activating - should continue to navigation itemsScreenshot
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