Skip to content

🎨 Palette: [UX improvement] Add missing aria-labels to icon buttons#252

Open
ldsgroups225 wants to merge 1 commit intomasterfrom
palette/add-aria-labels-icon-buttons-16124742342104865395
Open

🎨 Palette: [UX improvement] Add missing aria-labels to icon buttons#252
ldsgroups225 wants to merge 1 commit intomasterfrom
palette/add-aria-labels-icon-buttons-16124742342104865395

Conversation

@ldsgroups225
Copy link
Copy Markdown
Owner

@ldsgroups225 ldsgroups225 commented Apr 4, 2026

What

Added aria-label attributes to multiple <Button size="icon"> components in apps/school and apps/core. Also added a journal entry about verifying text content for icon-only buttons.

Why

These buttons previously lacked accessible text since they only contained SVG icons.

Before/After

Before:
<Button size="icon"><IconEdit /></Button>

After:
<Button size="icon" aria-label="Modifier"><IconEdit /></Button>

Accessibility

Screen readers can now correctly announce the purpose of these icon-only buttons ('Actions', 'Modifier', 'Supprimer').


PR created automatically by Jules for task 16124742342104865395 started by @ldsgroups225

Summary by CodeRabbit

  • Bug Fixes
    • Added descriptive ARIA labels to icon-only action buttons across the application to improve accessibility for screen reader users.

@google-labs-jules
Copy link
Copy Markdown

👋 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.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 4, 2026

📝 Walkthrough

Walkthrough

This PR adds localized aria-label attributes to icon-only buttons across multiple components to improve screen reader accessibility. A new journal entry in .jules/palette.md documents the missing ARIA labels issue and prescribes the solution using translation-key-based labels like t.common.edit() and t.common.delete().

Changes

Cohort / File(s) Summary
Accessibility Journal
.jules/palette.md
Added new journal section (2025-02-24) documenting missing ARIA labels on icon-only <Button> components and prescribing translation-key-based aria-label solutions.
Grades Components
apps/core/src/routes/_auth/app/catalogs/grades/grades-section.tsx, apps/core/src/routes/_auth/app/catalogs/grades/series-section.tsx
Added useTranslations() hook and applied localized aria-label attributes to edit and delete icon buttons using t.common.edit() and t.common.delete().
School Settings
apps/school/src/routes/_auth/settings/report-cards.tsx
Added aria-label={t.common.actions()} to the ghost icon button in dropdown menu triggers for row actions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 Buttons now whisper their secrets clear,
Each label translates, so all can hear.
No more silent icons, mystery's gone—
Accessibility hops along! 🌿

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the main purpose of the PR: adding aria-labels to icon buttons for accessibility. However, it includes an emoji (🎨) and a bracketed label ([UX improvement]) that could be considered noise.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch palette/add-aria-labels-icon-buttons-16124742342104865395

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.jules/palette.md:
- Line 14: Update the punctuation in the sentence that lists examples so "etc"
becomes "etc." (add the period); locate the line containing "t.common.actions(),
`t.common.edit(), etc" in .jules/palette.md and change the trailing "etc" token
to "etc." to conform to American English punctuation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ac519583-9e62-4f34-8875-1272aa203d3f

📥 Commits

Reviewing files that changed from the base of the PR and between 7e37ef8 and eea79ec.

📒 Files selected for processing (4)
  • .jules/palette.md
  • apps/core/src/routes/_auth/app/catalogs/grades/grades-section.tsx
  • apps/core/src/routes/_auth/app/catalogs/grades/series-section.tsx
  • apps/school/src/routes/_auth/settings/report-cards.tsx

Comment thread .jules/palette.md
**Action:** Whenever implementing a toggleable component, always apply the trifecta of ARIA attributes: `aria-expanded` (linked to state), `aria-controls` (linked to the content's `id`), and a dynamic `aria-label` that clarifies the action (e.g., "Toggle details for [Name]").
## 2025-02-24 - Missing ARIA labels on IconButtons
**Learning:** Found that `<Button size="icon">` in some older files or specific routes lack `aria-label` which creates accessibility problems for screen readers since there's no text content.
**Action:** Always add descriptive `aria-label` based on translation keys (`t.common.actions()`, `t.common.edit()`, etc) to any button that only contains an icon.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix punctuation for “etc.”

Line 14 should use etc. (with a period) for correct American English punctuation.

🧰 Tools
🪛 LanguageTool

[style] ~14-~14: In American English, abbreviations like “etc.” require a period.
Context: ...t.common.actions(), t.common.edit()`, etc) to any button that only contains an ic...

(ETC_PERIOD)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.jules/palette.md at line 14, Update the punctuation in the sentence that
lists examples so "etc" becomes "etc." (add the period); locate the line
containing "t.common.actions(), `t.common.edit(), etc" in .jules/palette.md and
change the trailing "etc" token to "etc." to conform to American English
punctuation.

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