Skip to content

🎨 Palette: Improve documentation tabs accessibility and keyboard navigation#54

Open
MilakyS wants to merge 1 commit into
mainfrom
palette-docs-a11y-tabs-16599524642922810351
Open

🎨 Palette: Improve documentation tabs accessibility and keyboard navigation#54
MilakyS wants to merge 1 commit into
mainfrom
palette-docs-a11y-tabs-16599524642922810351

Conversation

@MilakyS

@MilakyS MilakyS commented Jun 28, 2026

Copy link
Copy Markdown
Member

This PR introduces micro-UX and accessibility improvements to the documentation and landing pages.

💡 What

  • Accessible Tabs: The documentation's tabbed code examples now follow the WAI-ARIA Tabs pattern.
  • Keyboard Navigation: Users can now navigate between documentation tabs using ArrowRight, ArrowLeft, Home, and End keys.
  • Assistive Tech Polish: Decorative particle canvases are now hidden from screen readers using aria-hidden="true".
  • Compatibility: Refactored escapeHtml to use global regex instead of replaceAll for broader environment support.

🎯 Why

  • Documentation tabs were previously only accessible via mouse clicks and lacked proper semantic structure for screen readers.
  • Decorative background elements created unnecessary noise for assistive technology users.
  • replaceAll can cause issues in certain restricted JS environments (like some Cloudflare Workers versions).

♿ Accessibility

  • Added role="tablist", role="tab", and role="tabpanel".
  • Implemented aria-selected, aria-controls, and aria-labelledby.
  • Managed focus with a roving tabindex.
  • Reduced screen reader noise on 5 pages by hiding decorative canvases.

Tested with a custom Playwright script to verify ARIA state transitions and keyboard event handling.


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

…gation

- Implement WAI-ARIA Tabs pattern for documentation code examples
- Add keyboard navigation (Arrow keys, Home, End) with roving tabindex
- Hide decorative particle canvases from screen readers (aria-hidden)
- Refactor escapeHtml to use regex for better environment compatibility
- Ensure proper ARIA linking with dynamically generated IDs

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.

@netlify

netlify Bot commented Jun 28, 2026

Copy link
Copy Markdown

Deploy Preview for melodious-queijadas-3cc817 ready!

Name Link
🔨 Latest commit d12b70a
🔍 Latest deploy log https://app.netlify.com/projects/melodious-queijadas-3cc817/deploys/6a40bd162e67380008bf935b
😎 Deploy Preview https://deploy-preview-54--melodious-queijadas-3cc817.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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