[TIMOB-13892] iOS: Accessibility - Label.accessibilityLabel does not work properly inside a ScrollView properly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-09-23T03:45:04.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.5.0 |
Fix Version/s | Release 5.1.0 |
Components | iOS |
Labels | qe-3.1.1, qe-3.5.0 |
Reporter | Dhirendra Jha |
Assignee | Angel Petkov |
Created | 2013-05-17T11:39:19.000+0000 |
Updated | 2015-10-13T23:39:23.000+0000 |
Description
Label.accessibilityLabel does not work properly inside a ScrollView properly i.e. the device's VoiceOver will not read the label.
This is not a regression. Issue also exist on SDK 3.1.0
*Steps:*
1. Create a Titanium app with the following app.js code:
var _window = Ti.UI.createWindow({
backgroundColor: 'white'
});
var scroll1 = Ti.UI.createScrollView({
backgroundColor : 'red',
accessibilityLabel : 'This is ScrollView1',
accessibilityValue : 'Value1',
accessibilityHint : 'hint 1',
height : 200,
top : 0
});
var label1 = Ti.UI.createLabel({
text : 'Label Text',
accessibilityLabel : 'Label on first Scrollview'
});
scroll1.add(label1);
_window.add(scroll1);
_window.open();
2. Install app to device. Make sure VoiceOver is on: Settings > General > Accessibility > VoiceOver > On
3. Double-press on app to launch app
4. Double-press on the label
*Actual:* "Label on first Scrollview" is not read out.
*Expected:* "Label on first Scrollview" should be read out.
This issue was previously scheduled to be worked on in more than one sprint: * 'Release 3.1.2' (on board '3.1.X Triage') * 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage') Starting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration This issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage'). If this is incorrect, please update the issue accordingly. This comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.
This still occurs with SDK 3.5.0. Tested on: Appcelerator Studio, build: 3.4.1.201410281743 SDK build: 3.5.0.v20141215113314 CLI: 3.4.1 Alloy: 1.5.1 Xcode: 6.2 beta Devices: iphone 6 (8.1)
[~djha]: Does the issue only occur in the Labels inside a ScrollView? [~cng] Assigned this issue to [~apetkov], since he also worked on TIMOB-15418
Great. Let's remove it from the scrollview (in objective C), update the docs, and submit a PR.
APPROVED. PR merged.
Verified as fixed, Voiceover works correctly within the app. Double pressed "Label text" which prompted the voice over. OSX El Capitan 10.11 Studio: 4.3.1.201509302304 Ti SDK: 5.2.0.v20151009071418 Appc NPM: 4.2.1-1 Appc CLI: 5.1.0-38