New issue
Advanced search Search tips

Issue 918125 link

Starred by 2 users

Issue metadata

Status: ExternalDependency
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug
Team-Accessibility



Sign in to add a comment

UINavigationBar back button isn't accessible before enabling VoiceOver on iOS 12

Project Member Reported by gambard@chromium.org, Dec 28

Issue description

On iOS 12, when using a NavigationBar with a UITableViewController, with a long title, the back button has no text. In that case, the ButtonBarButton isn't accessible (i.e. isAccessibilityElement returns false) until VoiceOver is enabled. After VoiceOver has been enabled, it is now accessible (i.e. now isAccessibilityElement on the same element returns true).

What steps will reproduce the problem?
1. Have a NavigationBar with a long title on top of a UITableViewController.
2. Check the accessibilityElement value of the back button (should be NO)
3. Enable VoiceOver
4. Check the accessibilityElement value of the same back button (should be YES)

What is the expected result?
The back button should be accessible at step 2.

What happens instead?
It is not.

Filed radar 46969796

 
Cc: mrsuyi@chromium.org
gambard: Apple is requesting a sample app. Do you have one?

cc:mrsuyi in case he knows (while gambard is ooo).
I made a simple App to test this, but I had different results...

When VoiceOver is turned off, navigationItem.backBarButtonItem.isAccessibilityElement and navigationItem.rightBarButtonItem.isAccessibilityElement are all NO.

When VoiceOver is turned on, for back button it's still NO, but for right button it's YES.
Cc: pkl@chromium.org
Cc: pinkerton@chromium.org
The bug is about the back button, so doesn't that match the expectation in comment 0?
My test results are:

On simulator(no voiceover):
- Back Button: no
- Right Button: yes

On real device:
- Before voiceover is open:
  - Back Button: no
  - Right Button: no
- After voiceover is open:
  - Back Button: no
  - Right Button: yes

I do think it's buggy, but I can't reproduce it as gambard@ has described.

Comment 6 by gambard@chromium.org, Jan 18 (4 days ago)

I have submitted a sample app.
BackButton.zip
68.8 KB Download

Sign in to add a comment