Skip to content

Add skip navigation link for keyboard and screen reader users - #56

Open
claude[bot] wants to merge 1 commit into
masterfrom
fix/issue-48-skip-navigation-link
Open

Add skip navigation link for keyboard and screen reader users#56
claude[bot] wants to merge 1 commit into
masterfrom
fix/issue-48-skip-navigation-link

Conversation

@claude

@claude claude Bot commented Jun 16, 2026

Copy link
Copy Markdown

Fixes #48

What changed

Three additions to demo/index.html:

  1. CSS.skip-link (hidden off-screen) and .skip-link:focus (slides into view at top: 0) rules added in the <head> style block.
  2. HTML<a href="#main-content" class="skip-link">Skip to main content</a> added as the very first element inside <body>.
  3. HTMLid="main-content" added to the existing .container div so the skip link has a valid target.

Why

Without a bypass mechanism, keyboard users must Tab through all five navigation links on every page load before reaching the main content. This violated WCAG 2.4.1 Bypass Blocks, Level A. The skip link is invisible during normal mouse use and appears only when a keyboard user focuses it with Tab.

How to verify

Open demo/index.html in a browser, press Tab as the first action — a green "Skip to main content" label should appear at the top-left of the page. Pressing Enter jumps focus to the main container, skipping the nav links.

Adds a visually-hidden skip link as the first focusable element on the
page, targeting #main-content on the container div. Satisfies WCAG
2.4.1 Bypass Blocks, Level A.

Fixes #48
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 navigation link for keyboard and screen reader users

0 participants