diff --git a/.Jules/palette.md b/.Jules/palette.md index 2a9583abb..68f234b31 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -39,3 +39,7 @@ ## 2024-05-24 - Missing Tooltips on API 26+ **Learning:** Many icon-only buttons (`ImageButton`, `ImageView`) throughout the app have `android:contentDescription` set but lack a corresponding `android:tooltipText`. This means screen readers will announce them, but users relying on mouse hover or long-press will not see a descriptive text box. **Action:** Always add `android:tooltipText` matching `android:contentDescription` on icon-only interactive elements in XML to ensure visual parity with screen reader text. + +## 2026-05-11 - Add tooltip to search clear button in onboarding login +**Learning:** The 'clear' button in `header_onboarding_login.xml` was missing `tooltipText`, which helps mouse/stylus users understand icon-only buttons on Android API 26+. +**Action:** Add `android:tooltipText` matching the `android:contentDescription` to all icon-only buttons. diff --git a/mastodon/src/main/res/layout/header_onboarding_login.xml b/mastodon/src/main/res/layout/header_onboarding_login.xml index dae499010..e9e000ee3 100644 --- a/mastodon/src/main/res/layout/header_onboarding_login.xml +++ b/mastodon/src/main/res/layout/header_onboarding_login.xml @@ -63,6 +63,7 @@ android:visibility="gone" tools:visibility="visible" android:contentDescription="@string/clear" + android:tooltipText="@string/clear" android:stateListAnimator="@null" android:elevation="0dp" android:tint="?colorM3OnSurfaceVariant"