Skip to content

🎨 Palette: Add tooltipText to icon-only buttons#121

Merged
dlukt merged 1 commit into
masterfrom
ux/add-tooltip-text-to-icon-buttons-12920521906736015493
May 2, 2026
Merged

🎨 Palette: Add tooltipText to icon-only buttons#121
dlukt merged 1 commit into
masterfrom
ux/add-tooltip-text-to-icon-buttons-12920521906736015493

Conversation

@dlukt
Copy link
Copy Markdown
Owner

@dlukt dlukt commented May 2, 2026

🎨 Palette: Add Tooltip Text to Icon-Only Buttons

💡 What: Added android:tooltipText to icon-only ImageButton and ImageView elements, mirroring their existing android:contentDescription.
🎯 Why: To improve accessibility and usability. Icon-only buttons can be ambiguous. Adding tooltipText ensures that users with mice, trackpads, styluses, or those who long-press on touch screens receive a visual text label explaining the button's function, complementing the audio feedback provided to screen reader users by contentDescription.
Accessibility: Enhances visual accessibility by providing on-demand text labels for ambiguous icons (API 26+).

Modified layouts:

  • compose_poll_option.xml (Delete and Reorder options)
  • compose_fab.xml (New Post FAB)
  • fragment_timeline.xml (New Post FAB)

PR created automatically by Jules for task 12920521906736015493 started by @dlukt

Added `android:tooltipText` matching the `android:contentDescription` for several icon-only buttons (`ImageButton`, `ImageView`) in the UI to provide hover and long-press feedback for mouse, stylus, and touch users.

Modified files:
- `compose_poll_option.xml`: Delete and Reorder buttons.
- `compose_fab.xml`: Main compose FAB.
- `fragment_timeline.xml`: Timeline FAB.

Co-authored-by: dlukt <201112286+dlukt@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.

@dlukt dlukt merged commit 9c1ed16 into master May 2, 2026
2 checks passed
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