From c28d462c4a74cabf9a78d06905d7225ec4e0eb85 Mon Sep 17 00:00:00 2001 From: Rockachopa Date: Thu, 30 Apr 2026 19:44:29 -0400 Subject: [PATCH] feat(a11y): add skip navigation link for WCAG 2.4.1 compliance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add R5 skip navigation link template and supporting CSS to meet WCAG 2.4.1 Bypass Blocks (A). - New template: deploy/gitea-a11y/custom/templates/custom/skip_link.tmpl Provides a "Skip to main content" anchor as the first focusable element. - Updated deploy/gitea-a11y/custom/public/css/a11y-fixes.css (V5): Styles for .skip-link, visually hidden off-screen until focus. - Updated README.md with R5 documentation and activation instructions. - deploy-gitea-a11y.sh: include R5 in deployed fixes list. Usage: Insert `{{template "custom/skip_link" .}}` immediately after in custom/header.tmpl. Targets #545. Part of STEP35 FREE BURN — Gitea-first a11y V1. --- deploy/gitea-a11y/README.md | 36 +++++++++++++++---- .../custom/public/css/a11y-fixes.css | 22 ++++++++++++ .../custom/templates/custom/skip_link.tmpl | 20 +++++++++++ deploy/gitea-a11y/deploy-gitea-a11y.sh | 6 ++-- 4 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 deploy/gitea-a11y/custom/templates/custom/skip_link.tmpl diff --git a/deploy/gitea-a11y/README.md b/deploy/gitea-a11y/README.md index b03dc2f1..64f63ad0 100644 --- a/deploy/gitea-a11y/README.md +++ b/deploy/gitea-a11y/README.md @@ -10,6 +10,7 @@ Applied fixes identified by the accessibility audit (#492): | R2 | #552 | 3.3.1 | `aria-required="true"` on required form fields | | R3 | #553 | 4.1.2 | `aria-label` on star/fork count links ("2 stars", "0 forks") | | R4 | #554 | 1.3.1 | `