Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13892] iOS: Accessibility - Label.accessibilityLabel does not work properly inside a ScrollView properly

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-09-23T03:45:04.000+0000
Affected Version/sRelease 3.1.1, Release 3.5.0
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelsqe-3.1.1, qe-3.5.0
ReporterDhirendra Jha
AssigneeAngel Petkov
Created2013-05-17T11:39:19.000+0000
Updated2015-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.

Comments

  1. Unknown 2014-04-21

    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.
  2. Wilson Luu 2014-12-16

    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)
  3. Hans Knöchel 2015-09-08

    [~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
  4. Chee Kiat Ng 2015-09-10

    Great. Let's remove it from the scrollview (in objective C), update the docs, and submit a PR.
  5. Chee Kiat Ng 2015-09-23

    APPROVED. PR merged.
  6. Harry Bryant 2015-10-13

    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

JSON Source