[Bug]: Mobile status pill above the composer is hidden from TalkBack on Android
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
- On Android, open a thread in the mobile app.
- Make the floating status pill above the composer show something. The easiest way is to go offline (airplane mode), which shows "You are offline". The pill also shows Stopping, Starting, child-thread input, goals and Pi extension statuses.
- Read the accessibility tree (TalkBack,
uiautomator, or anAccessibilityNodeInfodump), or try to reach the pill with TalkBack.
Expected behavior
The pill is a focusable button with its label, like the composer buttons below it.
Actual behavior
The pill's node exists but has a clipped height of 0 and isVisibleToUser() == false, so TalkBack and accessibility snapshots skip it. It can only be tapped by screen coordinates. Raw node from Android, on main:
android.widget.Button "You are offline" boundsInScreen {x:368, y:2179, w:344, h:0} visibleToUser=false
parent ViewGroup (FloatingWorkingControl) {x:0, y:2179, w:1080, h:0} visibleToUser=false
parent ViewGroup (composer host) {x:0, y:2179, w:1080, h:220} visibleToUser=true
Cause: FloatingWorkingControl is drawn above its parent, the bottom-anchored composer host in ThreadDetailScreen, using top: -CONTROL_OVERLAY_OFFSET. React Native turns off child clipping, so the pill still draws and takes touches. But Android always clips a node's accessibility bounds to its parent's bounds, so the pill ends up 0px tall in the accessibility tree. The same happens while an Android question card is open, where the spacer that holds the pill sits outside the composer host.
Impact
Major degradation or frequent failure
Version or commit
main at babc83baf1
Environment
Android 16 (API 36) emulator, T3 Code Dev client. iOS not tested (no simulator available).
Workaround
None for screen reader users.