Skip to content

🎨 Palette: Add ARIA labels and states to prompt writing guide buttons#146

Draft
billlzzz10 wants to merge 5 commits into
mainfrom
palette-aria-guide-buttons-10749751293668620914
Draft

🎨 Palette: Add ARIA labels and states to prompt writing guide buttons#146
billlzzz10 wants to merge 5 commits into
mainfrom
palette-aria-guide-buttons-10749751293668620914

Conversation

@billlzzz10

@billlzzz10 billlzzz10 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

💡 What: Added missing ARIA accessibility attributes to the buttons and icons within src/components/prompts/prompt-writing-guide.tsx.
🎯 Why: To ensure that accordion and copy buttons communicate their state and function properly to screen readers without announcing redundant, decorative icon descriptions.
📸 Before/After: (No visual changes; purely DOM-level accessibility enhancements).
Accessibility:

  • Added aria-label="Copy code" to the copy button.
  • Added aria-expanded state tracking to the accordion sections.
  • Added aria-hidden="true" to decorative wrapper icons (Check, Copy, ChevronUp, ChevronDown, BookOpen, and standard section icons) to minimize screen reader noise.

PR created automatically by Jules for task 10749751293668620914 started by @billlzzz10


Summary by cubic

Improves Prompt Writing Guide accessibility by adding ARIA labels/states and hiding decorative icons. Also fixes CI Prisma validation by setting DIRECT_URL from DATABASE_URL when missing; no visual changes.

  • Accessibility

    • Added aria-label="Copy code" to the icon-only copy button.
    • Set aria-expanded on guide and section toggle buttons.
    • Hid decorative icons with aria-hidden="true" (Check, Copy, BookOpen, ChevronUp, ChevronDown, and section icons).
    • Documented this in .Jules/palette.md.
  • Bug Fixes

    • In prisma.config.ts, assign DIRECT_URL from DATABASE_URL when unset to satisfy Prisma validations in CI, keeping the default fallback.

Written for commit bf5b1fc. Summary will update on new commits.

Review in cubic

- Added `aria-label` to the icon-only "Copy" button.
- Added `aria-expanded` to Section and PromptWritingGuide accordion toggle buttons.
- Hid decorative icons (`BookOpen`, `ChevronUp`, `ChevronDown`, `Check`, `Copy`, and section icons) with `aria-hidden="true"`.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@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.

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agent-library Error Error Jul 6, 2026 8:35pm

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: adcc6bd5-f8a3-469e-ae0f-91049e5dba27

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette-aria-guide-buttons-10749751293668620914

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.

@snyk-io

snyk-io Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

billlzzz10 and others added 4 commits July 6, 2026 16:55
- Added `aria-label` to the icon-only "Copy" button.
- Added `aria-expanded` to Section and PromptWritingGuide accordion toggle buttons.
- Hid decorative icons (`BookOpen`, `ChevronUp`, `ChevronDown`, `Check`, `Copy`, and section icons) with `aria-hidden="true"`.
- Conditionally assign `DIRECT_URL` from `DATABASE_URL` in `prisma.config.ts` to satisfy CI Prisma validations without removing the default fallback.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Added `aria-label` to the icon-only "Copy" button.
- Added `aria-expanded` to Section and PromptWritingGuide accordion toggle buttons.
- Hid decorative icons (`BookOpen`, `ChevronUp`, `ChevronDown`, `Check`, `Copy`, and section icons) with `aria-hidden="true"`.
- Conditionally assign `DIRECT_URL` from `DATABASE_URL` in `prisma.config.ts` to satisfy CI Prisma validations without removing the default fallback.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Added `aria-label` to the icon-only "Copy" button.
- Added `aria-expanded` to Section and PromptWritingGuide accordion toggle buttons.
- Hid decorative icons (`BookOpen`, `ChevronUp`, `ChevronDown`, `Check`, `Copy`, and section icons) with `aria-hidden="true"`.
- Conditionally assign `DIRECT_URL` from `DATABASE_URL` in `prisma.config.ts` to satisfy CI Prisma validations while leaving the fallback intact with a TS ignore.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
- Added `aria-label` to the icon-only "Copy" button.
- Added `aria-expanded` to Section and PromptWritingGuide accordion toggle buttons.
- Hid decorative icons (`BookOpen`, `ChevronUp`, `ChevronDown`, `Check`, `Copy`, and section icons) with `aria-hidden="true"`.
- Conditionally assign `DIRECT_URL` from `DATABASE_URL` in `prisma.config.ts` to satisfy CI Prisma validations while leaving the fallback intact.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
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