[A11Y] [Low] Consider adding skip-to-content link #40

Open
opened 2026-02-19 20:08:52 +00:00 by continue[bot] · 0 comments
continue[bot] commented 2026-02-19 20:08:52 +00:00 (Migrated from github.com)

WCAG Level: A (2.4.1 Bypass Blocks)
Severity: Low (Docsy theme may handle this)
Category: Skip Links & Navigation

Issue Description

The site should have a "Skip to main content" link as the first focusable element to allow keyboard users to bypass repetitive navigation.

User Impact

  • Affected Users: Keyboard-only users, screen reader users
  • Severity: Users must tab through all navigation elements repeatedly on each page

Investigation Needed

This site uses the Docsy theme which may already include skip links. This issue is to:

  1. Verify if Docsy includes a skip link by default
  2. If not present, add one to the layout

Add to base layout template or create a partial:

<a class="skip-link" href="#main-content">Skip to main content</a>

With corresponding CSS:

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

Testing Instructions

  1. Load the homepage
  2. Press Tab as the first keyboard action
  3. Verify a "Skip to main content" link appears and is focusable
  4. Activate the link and verify focus moves to main content area

Resources

Acceptance Criteria

  • Verify if Docsy theme includes skip link
  • If not, implement skip link
  • Test keyboard navigation
  • Manual testing completed

## Accessibility Issue: Missing Skip Link **WCAG Level:** A (2.4.1 Bypass Blocks) **Severity:** Low (Docsy theme may handle this) **Category:** Skip Links & Navigation ### Issue Description The site should have a "Skip to main content" link as the first focusable element to allow keyboard users to bypass repetitive navigation. ### User Impact - **Affected Users:** Keyboard-only users, screen reader users - **Severity:** Users must tab through all navigation elements repeatedly on each page ### Investigation Needed This site uses the Docsy theme which may already include skip links. This issue is to: 1. Verify if Docsy includes a skip link by default 2. If not present, add one to the layout ### Recommended Fix (if needed) Add to base layout template or create a partial: ```html <a class="skip-link" href="#main-content">Skip to main content</a> ``` With corresponding CSS: ```css .skip-link { position: absolute; top: -40px; left: 0; background: #000; color: #fff; padding: 8px; z-index: 100; } .skip-link:focus { top: 0; } ``` ### Testing Instructions 1. Load the homepage 2. Press Tab as the first keyboard action 3. Verify a "Skip to main content" link appears and is focusable 4. Activate the link and verify focus moves to main content area ### Resources - [WCAG 2.4.1 Bypass Blocks](https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks.html) - [WebAIM: Skip Navigation Links](https://webaim.org/techniques/skipnav/) - [Docsy Theme Accessibility](https://www.docsy.dev/docs/adding-content/navigation/) ### Acceptance Criteria - [ ] Verify if Docsy theme includes skip link - [ ] If not, implement skip link - [ ] Test keyboard navigation - [ ] Manual testing completed --- <!-- accessibility-tracker: automated scan 2026-02-19 -->
Sign in to join this conversation.
No description provided.