You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ActionItems lacks proper support for VoiceOver on iOS #2796
The text-property on ActionItems on the ActionBar isn't read by VoiceOver on iOS, only the icon name is and ActionItem doesn't have the property automationText. That's because ActionItem doesn't inherit from ui/core/view.
The problem is caused by adding an icon to the ActionItem, because the text-value was never added to the UINavigationButton.
I've written a demo as requested, it's based on tns create APP_NAME --template typescript and I've tested with a local install of ´tns-core-moduleswith my patch and ontns-core-modules@next`
The screenshots is from running on the iPhone emulator, so you can see the Accessibility Inspector:
Here without my patch:
As you can see the inspector says the Label is X the filename of my icon.
Expected reading order is "My ActionItem Text" -> "Button"
As seen here with the patch:
If you were testing the ActionItem > Button on tns-core-modules@2.3.0, my other PR for automationText on iOS weren't a part of that release. (#2678) but it is on master, so it's in my current PR.
Expected reading order "AutoText" > "Button"
As seen here:
Note: that automationText doesn't exist on ActionItem because contentDescription doesn't exist on the MenuItem used on Android.
Activity
m-abs commentedon Sep 26, 2016
Update:
I think I see the problem:
https://github.com/NativeScript/NativeScript/blob/2.3.0/tns-core-modules/ui/action-bar/action-bar.ios.ts#L134-L163
If we have an icon on the
ActionItemthe text is never set on theUIBarButtonItem, so of cause iOS' VoiceOver can't read the text.I'm working on a PR that hopefully solves the problem.
fix: NativeScript#2796 - ActionItems lacks proper support for VoiceOv…
vchimev commentedon Sep 29, 2016
Hi @m-abs,
Thank you for the pull request.
Could you please send us a sample page which demonstrates the issue along with:
In this way, we would be able to review your pull request properly.
For example, my test page is as follow:
It is read as follows: Item -> Button, Test -> Button
m-abs commentedon Oct 1, 2016
HI @vchimev,
The problem is caused by adding an icon to the
ActionItem, because the text-value was never added to theUINavigationButton.I've written a demo as requested, it's based on
tns create APP_NAME --template typescriptand I've tested with a local install of ´tns-core-moduleswith my patch and ontns-core-modules@next`The screenshots is from running on the iPhone emulator, so you can see the
Accessibility Inspector:The ActionItem on https://github.com/m-abs/actionitem-demo/blob/master/app/main-page.xml#L5
Here without my patch:

As you can see the inspector says the Label is X the filename of my icon.
Expected reading order is "My ActionItem Text" -> "Button"

As seen here with the patch:
If you were testing the
ActionItem>Buttonontns-core-modules@2.3.0, my other PR forautomationTextoniOSweren't a part of that release. (#2678) but it is on master, so it's in my current PR.Expected reading order "AutoText" > "Button"

As seen here:
Note: that
automationTextdoesn't exist onActionItembecausecontentDescriptiondoesn't exist on theMenuItemused onAndroid.vchimev commentedon Oct 4, 2016
@m-abs, many thanks for the details.
fix: #2796 - ActionItems lacks proper support for VoiceOver on iOS (#…
lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.