🎨 Palette: Add tooltips to icon-only buttons#127
Conversation
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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
🎨 Palette: Add tooltips to icon-only buttons
💡 What: Added
android:tooltipTextto icon-onlyImageButtonandImageViewelements, perfectly matching their existingandroid:contentDescription.🎯 Why: To enhance accessibility for sighted users on Android API 26+ devices. While
contentDescriptionsupports screen readers,tooltipTextprovides 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