Skip to content

Add a screen reader label to the poll attach button - #2071

Open
mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-poll-create-attach-button-without-label
Open

mehranlatifi83 wants to merge 1 commit into
DrKLO:masterfrom
mehranlatifi83:fix/talkback-poll-create-attach-button-without-label

Conversation

@mehranlatifi83

@mehranlatifi83 mehranlatifi83 commented Sep 4, 2026 •

Copy link
Copy Markdown

Problem

In poll creation, the attach button next to the description, the explanation and each option (to attach a photo, sticker, location, music, link or file) has no text or description. TalkBack reads only "button". When media is attached, the icon becomes a thumbnail and pressing it changes the media; this is not read either.

Fix

In PollAttachButton and the PollAttachedMedia* classes:

  • Label the button by what pressing it does.
  • When media is attached, say what it is: its type, or the file name or link address where that is more useful.

All labels use existing app strings. The same button in the "add option" field of a sent poll (PollAddOptionFieldLayout) is labelled too, along with the emoji button next to it.

Testing

With TalkBack on, create a poll and swipe onto the attach button next to an option, then attach a photo and swipe onto it again.

Before: just "button". After: it says what it does, and once a photo is attached, it says so.

@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-attach-button-without-label branch from 9eab93e to 131b5a4 Compare September 18, 2026 09:50
Beside the description of a poll, beside its explanation and beside every
option there is a button for attaching a picture, a sticker, a place, a
piece of music, a link or a file. It is a bare view drawn by hand with no
text and no description, so a screen reader stops on it and says only
that there is a button, without saying what it does.

Once something is attached the icon is replaced by a thumbnail of it, and
a press then goes to changing it rather than to adding. None of that was
said either: nothing told you an option already carried a picture, or
which one.

Name the button after what a press on it does, and where something is
already attached, say what it is. Every kind of attachment names itself,
by its kind, or by the file name or the address where that says more. All
of the words are ones the app already has.

The button of the field that adds an option to a poll already sent is the
same view, so it is named too, along with the emoji button beside it,
which had no name either.
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-attach-button-without-label branch 2 times, most recently from 8fc03bb to 338ac92 Compare October 1, 2026 23:01
@mehranlatifi83 mehranlatifi83 changed the title Name the button that attaches something to a poll Oct 1, 2026
@mehranlatifi83
mehranlatifi83 force-pushed the fix/talkback-poll-create-attach-button-without-label branch from 338ac92 to e882541 Compare October 13, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant