Skip to content

🎨 Palette: Add skip-to-content accessibility link#8

Open
MilakyS wants to merge 1 commit into
mainfrom
palette/skip-to-content-15515132563651163349
Open

🎨 Palette: Add skip-to-content accessibility link#8
MilakyS wants to merge 1 commit into
mainfrom
palette/skip-to-content-15515132563651163349

Conversation

@MilakyS
Copy link
Copy Markdown
Member

@MilakyS MilakyS commented May 4, 2026

💡 What

Implemented a "Skip to Content" accessibility link that appears at the top of the page when focused via keyboard. Standardized the main content container across all pages to use id="main-content" and tabindex="-1" for consistent anchor targeting and focus management.

🎯 Why

This is a critical accessibility (A11y) feature that allows keyboard and screen reader users to bypass repetitive navigation links and jump directly to the primary page content, significantly improving the browsing experience.

♿ Accessibility

  • Added a functional skip-link that follows best practices (hidden until focused).
  • Unified the content anchor across all pages (index, docs, examples, playground, roadmap, changelog).
  • Ensured the target container is focusable (tabindex="-1") to prevent focus loss in some browsers.
  • Added full i18n support for the skip link text (English and Russian).

🎨 Visual Polish

  • Added a high-contrast focus state for the skip link that matches the site's theme.
  • Fixed a minor CSS bug where an undefined variable (--text-dim) was used in the "reworking" UI.

📸 Verification

Verified via Playwright:

  • Link appears on first Tab press.
  • Link correctly scrolls/focuses the #main-content area.
  • Link text localizes correctly when switching languages.
  • All page-specific layouts (Roadmap, Changelog) remain intact after ID unification.

PR created automatically by Jules for task 15515132563651163349 started by @MilakyS

- Injected skip-to-content link in header.js using site.json i18n keys.
- Standardized all page main containers with id="main-content" and tabindex="-1".
- Updated roadmap and changelog JS/CSS to use the new unified ID.
- Fixed undefined --text-dim variable in reworking.css.
- Added global skip-link styles in base.css.

Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant