🎨 Palette: Add skip-to-content links for keyboard accessibility#71
🎨 Palette: Add skip-to-content links for keyboard accessibility#710m364 wants to merge 1 commit intoadd-0m364-website-1232764033486168073from
Conversation
- Added a visually hidden "Skip to main content" link at the start of `<body>` on all HTML pages (`index.html`, `products.html`, `concepts.html`, `contact.html`). - Applied `tabindex="-1"` and `id="main-content"` to all `<main>` elements to ensure cross-browser programmatic focus shifting. - Added a `.skip-link` utility class in `styles.css` that leverages `transform: translateY` to smoothly reveal the link on keyboard focus. - Updated the Playwright UI testing script (`test_ui.py`) to verify the "Tab" -> "Enter" keyboard focus flow.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: Added a 'Skip to main content' link immediately after the opening
<body>tag on all pages, which becomes visible on focus.🎯 Why: To significantly improve the experience for keyboard-only users and screen readers by allowing them to bypass repetitive header and navigation links and jump directly to the primary page content.
📸 Before/After: Verified via Playwright screenshot; the skip link appears securely pinned to the top of the viewport when focused and completely hidden otherwise.
♿ Accessibility: The target
<main>container was updated withtabindex="-1"and a matching ID to ensure consistent programmatic focus across all modern browsers without creating an artificial tab stop. The focus-visible outline cleanly matches the site's design token.PR created automatically by Jules for task 5728375401535576200 started by @0m364