Skip to content

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

Merged
dlukt merged 1 commit into
masterfrom
ux-tooltips-3915215734906060726
May 14, 2026
Merged

🎨 Palette: Add tooltips to icon-only buttons#127
dlukt merged 1 commit into
masterfrom
ux-tooltips-3915215734906060726

Conversation

@dlukt
Copy link
Copy Markdown
Owner

@dlukt dlukt commented May 13, 2026

🎨 Palette: Add tooltips to icon-only buttons

💡 What: Added android:tooltipText to icon-only ImageButton and ImageView elements, perfectly matching their existing android:contentDescription.
🎯 Why: To enhance accessibility for sighted users on Android API 26+ devices. While contentDescription supports screen readers, tooltipText provides native visual feedback on hover (mouse/stylus) or long-press (touch), making the interface more discoverable and intuitive without relying on external documentation.
📸 Before/After: No major visual change immediately, but a small pop-up tooltip appears on hover/long-press on devices running Android Oreo (API 26) or higher.
Accessibility: Direct improvement matching Android accessibility best practices. Older devices will safely ignore the attribute.


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

Added `android:tooltipText` matching `android:contentDescription` to icon-only buttons (`help` in `sheet_photo_viewer_info.xml`, `sheet_alt_text.xml`, `alert_title_with_help.xml` and `severity` in `item_server_block.xml`). This provides hover and long-press tooltips on API 26+ devices, improving accessibility for mouse, stylus, and touch users without screen readers.

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 5703037 into master May 14, 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