Skip to content

🎨 Palette: [UX improvement] Add ARIA labels and focus states to playground inputs#45

Open
aloewright wants to merge 1 commit into
mainfrom
palette-playground-a11y-7088869935116163878
Open

🎨 Palette: [UX improvement] Add ARIA labels and focus states to playground inputs#45
aloewright wants to merge 1 commit into
mainfrom
palette-playground-a11y-7088869935116163878

Conversation

@aloewright

Copy link
Copy Markdown
Owner

💡 What: Added aria-label attributes to the 6 inputs in the Playground view (Guide, Preset, Temperature, Input, Humanize output, and Extra pass) and explicitly set focus-visible styling on the <textarea> and custom <select> wrappers using the standard focus-visible:outline-[var(--strand-color-accent-lede)].
🎯 Why: Custom UI components without visual focus styles impair keyboard navigation by leaving users "lost" as they tab through interactive elements. In addition, the custom form wrappers in the playground passing inputs implicitly lacked necessary ARIA labeling for screen readers to properly announce the input's purpose.
📸 Before/After: Before, focusing the Input textarea or the Guide dropdown displayed nothing. After, pressing Tab clearly highlights them with the app's distinct red accent ring.
Accessibility: Added proper screen reader announcements and crucial keyboard navigation visibility.


PR created automatically by Jules for task 7088869935116163878 started by @aloewright

Co-authored-by: aloewright <3641844+aloewright@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 26, 2026 05:36
@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.

@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@aloewright, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 49 minutes and 54 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 966107f8-135f-4d8b-9d67-a4b10eea77e5

📥 Commits

Reviewing files that changed from the base of the PR and between bab8f67 and 2f3f5e8.

📒 Files selected for processing (1)
  • apps/quill/client/components/playground-view.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette-playground-a11y-7088869935116163878

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
postpilot 2f3f5e8 May 26 2026, 05:37 AM

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds focus-visible styling and accessibility attributes to various form controls in the PlaygroundView component. The reviewer's feedback highlights that several of the newly added aria-label attributes are redundant due to implicit label nesting within <Control> or <label> wrappers. Additionally, some labels override dynamic values or visible text, which could negatively impact screen readers and violate WCAG guidelines.

Comment on lines +298 to +299
aria-label="Guide"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The <select> element is already nested inside a <Control> component, which renders a <label> element. In HTML, nesting form controls inside a <label> implicitly associates them, providing the accessible name automatically. Therefore, aria-label="Guide" is redundant and can be safely removed to keep the markup clean.

Suggested change
aria-label="Guide"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"

Comment on lines +313 to +314
aria-label="Preset"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the Guide dropdown, this <select> is nested inside a <Control> component (which renders a <label>). The implicit label association automatically provides the accessible name, making aria-label="Preset" redundant.

Suggested change
aria-label="Preset"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"
className="pp-select focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--strand-color-accent-lede)]"

Comment on lines +331 to 332
aria-label="Temperature"
className="w-full"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The <Control> wrapper here has a dynamic label: Temperature · {temperature.toFixed(1)}. By hardcoding aria-label="Temperature", screen readers will only announce "Temperature" and won't announce the dynamic temperature value when focusing the slider. Removing the aria-label allows the implicit label to be used, which correctly includes the dynamic value.

Suggested change
aria-label="Temperature"
className="w-full"
className="w-full"

Comment on lines +369 to 370
aria-label="Extra pass (slower)"
checked={humanizeExtraPass}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The checkbox is nested inside a <label> with the visible text Extra pass (slower, more thorough). Setting aria-label="Extra pass (slower)" overrides the visible label for screen readers, resulting in a mismatch between the visible text and the accessible name. This violates WCAG 2.5.3 (Label in Name). Removing the aria-label ensures the full visible text is used as the accessible name.

Suggested change
aria-label="Extra pass (slower)"
checked={humanizeExtraPass}
checked={humanizeExtraPass}

Comment on lines +727 to 728
aria-label="Humanize output"
checked={on}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The <input> is nested inside a <label> that contains the text Humanize output. The implicit label association already provides the correct accessible name, making aria-label="Humanize output" redundant.

Suggested change
aria-label="Humanize output"
checked={on}
checked={on}

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves accessibility in the Quill Playground by adding accessible names and visible keyboard focus styling to key form controls.

Changes:

  • Adds aria-label attributes to Playground select, range, textarea, and checkbox controls.
  • Adds focus-visible outline styling to the Guide/Preset selects and Input textarea.
  • Reuses the app’s existing accent outline token for focus indication.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

style={{ color: "var(--strand-color-ink-muted)" }}
>
<input
aria-label="Extra pass (slower)"
}}
>
<input
aria-label="Humanize output"
@aloewright aloewright enabled auto-merge (squash) June 4, 2026 05:07
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.

2 participants