Skip to content

[Bug]: Mobile status pill above the composer is hidden from TalkBack on Android #39379

Closed

Description

@Lenoridev

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. On Android, open a thread in the mobile app.
  2. 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.
  3. Read the accessibility tree (TalkBack, uiautomator, or an AccessibilityNodeInfo dump), 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 babc83b

Environment

Android 16 (API 36) emulator, T3 Code Dev client. iOS not tested (no simulator available).

Workaround

None for screen reader users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions