Skip to content

🎨 Palette: Add skip to main content link for keyboard accessibility - #106

Open
ELO2026X wants to merge 1 commit into
mainfrom
palette/a11y-skip-link-1372704056460344025
Open

🎨 Palette: Add skip to main content link for keyboard accessibility#106
ELO2026X wants to merge 1 commit into
mainfrom
palette/a11y-skip-link-1372704056460344025

Conversation

@ELO2026X

Copy link
Copy Markdown
Owner

💡 What

Added a "Skip to main content" link to the root of the application, targeting a new semantic <main> container in the content view.

🎯 Why

This is a critical accessibility feature. Keyboard users (and screen reader users) shouldn't have to manually tab through the entire sidebar menu (the "Effects Explorer" list) every time they load the page just to reach the 3D model viewer and effect details.

📸 Before/After

  • Before: Users pressing Tab on initial page load would focus the first item in the sidebar list.
  • After: The first Tab press reveals a "Skip to main content" link at the top left. Pressing Enter bypasses the sidebar and moves programmatic focus directly to the <main> content area.

♿ Accessibility

  • Improves Keyboard Navigation by adhering to WCAG Success Criterion 2.4.1 (Bypass Blocks).
  • Uses Tailwind's sr-only and focus-visible:not-sr-only to ensure the link is completely invisible to sighted mouse users but becomes a prominent, styled button when accessed via keyboard navigation.
  • Upgrades the primary ContentView wrapper from a generic <div> to a semantic <main> tag, improving document structure for assistive technologies.

PR created automatically by Jules for task 1372704056460344025 started by @ELO2026X

- Added a visually hidden "Skip to main content" link to the root App component that becomes visible when receiving keyboard focus.
- Modified the ContentView container to act as the main semantic `<main>` tag with `id="main-content"`.
- Added `tabIndex={-1}` and `focus:outline-none` to the main container to allow programmatic focus without displaying an outline.

Co-authored-by: ELO2026X <153048533+ELO2026X@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