Skip to content

🎨 Palette: Add tooltips to icon-only buttons - #673

Open
matta wants to merge 3 commits into
mainfrom
palette/icon-button-titles-6098559899872731138
Open

🎨 Palette: Add tooltips to icon-only buttons#673
matta wants to merge 3 commits into
mainfrom
palette/icon-button-titles-6098559899872731138

Conversation

@matta

@matta matta commented Mar 15, 2026

Copy link
Copy Markdown
Owner

🎨 Palette: Add tooltips to icon-only buttons

💡 What: Added title attributes to several icon-only buttons (Search, Settings, Back, and Expand).
🎯 Why: While these buttons had aria_label attributes for screen readers, sighted users relying on a mouse had no visual indication of what the buttons did when hovering.
📸 Before/After: Sighted users will now see standard OS/browser tooltips when hovering over these icons.
Accessibility: Improves the experience for non-screen-reader users who may not immediately recognize the meaning of an icon.


PR created automatically by Jules for task 6098559899872731138 started by @matta

Adds `title` attributes to several icon-only buttons across the application (Search, Settings, Back, and Expand/Collapse buttons) that previously only had `aria_label` attributes. This ensures that sighted users hovering with a mouse can easily understand their purpose, improving overall accessibility.

Also adds a learning entry to `.Jules/palette.md` to document this practice for future micro-UX improvements.

Co-authored-by: matta <37314+matta@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.

@trunk-io

trunk-io Bot commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the user experience and accessibility of the application by introducing visual tooltips for icon-only buttons. While aria_label attributes already catered to screen reader users, the addition of title attributes ensures that sighted users hovering over these icons also receive immediate visual feedback on their function, improving overall usability and clarity.

Highlights

  • Improved Accessibility: Added title attributes to several icon-only buttons (Search, Settings, Back, and Expand) to provide visual tooltips on hover for sighted users, complementing existing aria_label attributes for screen readers.
  • Documented Best Practice: A new documentation entry was added to .Jules/palette.md outlining the importance of pairing aria_label with title attributes for icon-only buttons to ensure comprehensive accessibility for all users.
Changelog
  • .Jules/palette.md
    • Added a new documentation entry outlining the best practice for using title attributes with icon-only buttons.
  • crates/tasklens-ui/src/app_components/app_navbar.rs
    • Added title attributes to the 'Search tasks' and 'Settings' buttons.
    • Ensured visual tooltips appear on hover for these navigation elements.
  • crates/tasklens-ui/src/app_components/back_button.rs
    • Applied a title attribute to the 'Back' button.
    • Improved hover feedback for the back navigation control.
  • crates/tasklens-ui/src/app_components/task_row.rs
    • Added a title attribute to the 'Toggle expansion' button within task rows.
    • Provided visual tooltip for the task expansion control.
Activity
  • PR created automatically by Jules for task 6098559899872731138, initiated by @matta.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request is a good accessibility and usability enhancement, adding title attributes to icon-only buttons to provide tooltips for sighted users. The implementation is straightforward and correct in most places. I've added one suggestion in task_row.rs to make the title and aria-label for the expansion button more descriptive, which will improve accessibility and align it with the pattern used by other interactive elements in the same component.

Comment on lines +137 to 138
title: "Toggle expansion",
aria_label: "Toggle expansion",

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.

medium

For improved accessibility and consistency, the title and aria-label for the expansion toggle should include the task title. This provides clearer context for users, especially those using assistive technologies, about which task will be expanded. This change would also align this button's labeling with other interactive elements in the TaskRow component (e.g., 'Delete task {title}').

Suggested change
title: "Toggle expansion",
aria_label: "Toggle expansion",
title: "Toggle expansion for {title}",
aria_label: "Toggle expansion for {title}",
References
  1. The repository style guide for aria-label recommends being concise but also providing clear context, giving 'Edit task {task.title}' as a good example. Making this label more specific by including the task title follows this guideline. (link)

google-labs-jules Bot and others added 2 commits March 15, 2026 18:28
Renames `.Jules/palette.md` to `.jules/palette.md` to resolve CI failures caused by the directory name not being in kebab-case or snake-case.

Co-authored-by: matta <37314+matta@users.noreply.github.com>
Formats the `.jules/palette.md` file using `pnpm prettier --write` to resolve the CI check format failure.

Co-authored-by: matta <37314+matta@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