Skip to content

🎨 Palette: Accessible Documentation Tabs and UX Polish#52

Open
MilakyS wants to merge 1 commit into
mainfrom
palette-a11y-tabs-enhancement-1888305579132350421
Open

🎨 Palette: Accessible Documentation Tabs and UX Polish#52
MilakyS wants to merge 1 commit into
mainfrom
palette-a11y-tabs-enhancement-1888305579132350421

Conversation

@MilakyS

@MilakyS MilakyS commented Jun 26, 2026

Copy link
Copy Markdown
Member

This PR introduces micro-UX and accessibility enhancements to the documentation's tabbed interfaces and decorative elements.

💡 What: The UX enhancement added

  • WAI-ARIA Tabs: The documentation's code block tabs now follow the standard WAI-ARIA pattern, including appropriate roles and ARIA relationships.
  • Keyboard Navigation: Users can now navigate between documentation tabs using Arrow keys, Home, and End.
  • Decorative Silence: The background particles canvas is now hidden from assistive technologies.
  • Compatibility: escapeHtml was updated to use global regex replacements, ensuring stability in environments that might not fully support ES2021 replaceAll.

🎯 Why: The user problem it solves

  • Prevents documentation tabs from being a "dead end" for keyboard users, allowing intuitive navigation without tabbing through every element.
  • Reduces auditory noise for screen reader users by hiding purely decorative background animations.
  • Improves build and runtime stability across different hosting environments.

♿ Accessibility: Any a11y improvements made

  • Full WAI-ARIA role implementation for tabs.
  • Roving tabindex for efficient group navigation.
  • aria-hidden on decorative content.
  • Support for standard keyboard interaction patterns (Arrow keys, etc.).

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

- Implemented WAI-ARIA Tabs pattern in documentation:
  - Added role="tablist", role="tab", and role="tabpanel".
  - Established ARIA relationships using aria-controls and aria-labelledby.
  - Implemented roving tabindex (tabindex="0" for active, "-1" for inactive).
  - Added keyboard navigation support for ArrowLeft, ArrowRight, Home, and End keys.
- Marked decorative particles canvas with aria-hidden="true" for better screen reader experience.
- Updated escapeHtml utility to use global regex instead of replaceAll for broader environment compatibility (Cloudflare Workers).
- Updated Palette journal with accessible tabbed interface learnings.

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 26, 2026

Copy link
Copy Markdown

Deploy Preview for melodious-queijadas-3cc817 ready!

Name Link
🔨 Latest commit 7957ecc
🔍 Latest deploy log https://app.netlify.com/projects/melodious-queijadas-3cc817/deploys/6a3e137b03b51900081ec1fa
😎 Deploy Preview https://deploy-preview-52--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