Skip to content

🎨 Palette: [UX improvement] Improve keyboard accessibility for form controls#55

Open
aloewright wants to merge 2 commits into
mainfrom
palette/playground-accessibility-13718453007129190310
Open

🎨 Palette: [UX improvement] Improve keyboard accessibility for form controls#55
aloewright wants to merge 2 commits into
mainfrom
palette/playground-accessibility-13718453007129190310

Conversation

@aloewright

Copy link
Copy Markdown
Owner

What: Added explicit aria-label attributes to the Guide and Preset select dropdowns and the input textarea within PlaygroundView. Also added distinct visual focus states (focus-visible:outline-[var(--strand-color-accent-lede)]) to these controls.
Why: The custom form wrappers do not implicitly link labels via id/htmlFor, causing screen readers to announce unlabelled controls. Additionally, using focus:outline-none stripped default keyboard focus indicators making navigation harder for sighted keyboard users.
Before/After: Form elements used to drop their default outline without applying a custom one when focused; they now show a clear strand-colored accent ring upon focus via focus-visible.
Accessibility: Improves WCAG compliance for Focus Visible (2.4.7) and Name, Role, Value (4.1.2). Screen readers will now explicitly announce the purpose of the Guide selector, Preset selector, and input field.


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

…ontrols

Co-authored-by: aloewright <3641844+aloewright@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.

Copilot AI review requested due to automatic review settings May 30, 2026 05:46
@coderabbitai

coderabbitai Bot commented May 30, 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 40 minutes and 46 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: beb84ab7-af15-45b1-a993-8948fad6974e

📥 Commits

Reviewing files that changed from the base of the PR and between bab8f67 and 152b60e.

📒 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-accessibility-13718453007129190310

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

cloudflare-workers-and-pages Bot commented May 30, 2026

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 152b60e May 30 2026, 05:53 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 improves accessibility and focus styles in the PlaygroundView component by adding aria-label attributes and custom focus-visible outlines. The reviewer provided feedback pointing out that the added aria-label attributes on the 'Guide' and 'Preset' selectors are redundant because they are already wrapped in labels, and suggested adjusting the focus outline styles on .pp-select to avoid potential accessibility issues in environments that do not support :focus-visible.

Comment on lines 297 to 299
<select
aria-label="Guide"
className="pp-select"

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

Since the <select> element is already wrapped inside a <label> element by the Control component, it is implicitly associated and will be correctly announced by screen readers. Adding a hardcoded aria-label is redundant and introduces a maintenance risk where the visual label and the accessible name could desync (violating WCAG 2.5.3 Label in Name if they diverge).

Suggested change
<select
aria-label="Guide"
className="pp-select"
<select
className="pp-select"

Comment on lines 312 to 314
<select
aria-label="Preset"
className="pp-select"

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 selector, this <select> is already wrapped in a <label> via the Control component. The aria-label is redundant and risks desyncing from the visual label.

Suggested change
<select
aria-label="Preset"
className="pp-select"
<select
className="pp-select"

Comment on lines +653 to 658
outline: none;
}
.pp-select:focus-visible {
outline: 2px solid var(--strand-color-accent-lede);
outline-offset: 2px;
}

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

Setting outline: none on the base .pp-select class removes the outline entirely for all states, which can cause unexpected accessibility issues if :focus-visible is not triggered or supported. It is safer and more idiomatic to only remove the outline on :focus, matching the Tailwind behavior used on the textarea above.

        }
        .pp-select:focus {
          outline: none;
        }
        .pp-select:focus-visible {
          outline: 2px solid var(--strand-color-accent-lede);
          outline-offset: 2px;
        }

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

…ontrols

Co-authored-by: aloewright <3641844+aloewright@users.noreply.github.com>
@aloewright aloewright enabled auto-merge (squash) June 4, 2026 05:06
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