Skip to content

🎨 Palette: Documentation copy links and a11y polish#28

Open
MilakyS wants to merge 1 commit into
mainfrom
palette/docs-copy-links-a11y-9571414707835561932
Open

🎨 Palette: Documentation copy links and a11y polish#28
MilakyS wants to merge 1 commit into
mainfrom
palette/docs-copy-links-a11y-9571414707835561932

Conversation

@MilakyS
Copy link
Copy Markdown
Member

@MilakyS MilakyS commented May 27, 2026

💡 What: The UX enhancement added

  • Documentation Deep Links: Added interactive "Copy Link" buttons to all documentation cards and the hero section.
  • Accessibility Polish: Refined the aria-label for search inputs to exclude keyboard shortcut hints, providing a cleaner experience for screen reader users.
  • Build Stability Fixes: Refactored String.prototype.replaceAll to global regex replace across all repository scripts to ensure compatibility in Cloudflare Workers and older browser environments.

🎯 Why: The user problem it solves

  • Users couldn't easily share specific sections of the documentation.
  • Screen reader users were hearing redundant keyboard shortcut hints in search labels.
  • Modern JS syntax was causing silent build failures in some deployment environments.

♿ Accessibility: Any a11y improvements made

  • Added aria-label feedback loop to copy buttons.
  • Optimized search aria-label for screen reader clarity.
  • Ensured keyboard focus visibility for new interactive elements.

📸 Before/After

  • Before: No way to copy section links; search label included "(/)".
  • After: Hovering/focusing a doc card reveals a link icon that provides "Link copied" feedback when clicked. Search label is clean.

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

- Added "Copy Link" buttons to documentation sections for better shareability.
- Implemented multi-modal feedback (icon + aria-label) for copy interactions.
- Improved search accessibility by removing shortcut hints from aria-labels.
- Fixed build stability by replacing replaceAll with global regex.
- Added localized i18n keys for copy link features.
- Updated Palette's journal with new UX and a11y 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
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for melodious-queijadas-3cc817 ready!

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