FloatingActionButtonSpeedDial icon indicating copy to clipboard operation
FloatingActionButtonSpeedDial copied to clipboard

TalkBack reads the label text twice

Open ByteHamster opened this issue 1 year ago • 0 comments

Step 1: Are you in the right place?

  • [x] I have verified there are no duplicate active or recent bugs, questions, or requests
  • [x] I have verified that I am using the latest version of the library.

Step 2: Describe your environment

  • Library version: 3.3.0
  • Android version: 13
  • Support library version: ?
  • Device brand: OnePlus
  • Device model: 7T

Step 3: Describe the problem:

Steps to reproduce:

  1. Activate TalkBack
  2. Open the action menu

Observed Results:

  • The labels are read twice, once for the actual text labels and once for the FAB images. TalkBack users have to swipe twice to get to the next item because each item is focused twice.

Expected Results:

  • Read and focus each action only once.

Relevant Code:

I think this was introduced in https://github.com/leinardi/FloatingActionButtonSpeedDial/commit/6653f9182323add0624d593432e1c33f71c7b0d0, which sets a content description on the FABs even if there already is a label anyway. Instead, if there is a label, it should set the FAB to be not important for accessibility.

See also: https://github.com/AntennaPod/AntennaPod/issues/6692

ByteHamster avatar Feb 29 '24 20:02 ByteHamster