[TIMOB-13888] Accessibility: If OptionDialog.accessibilityHidden is true, device will still read text on the OptionDialog
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.1, Release 3.5.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-3.1.1, qe-3.5.0 |
Reporter | Paras Mishra |
Assignee | Unknown |
Created | 2013-05-17T10:03:53.000+0000 |
Updated | 2018-02-28T20:04:13.000+0000 |
Description
If OptionDialog.accessibilityHidden is true, device will still read text on the OptionDialog.
This is not a regression. Issue occurs since 2.1.4.GA
Steps to reproduce:
1. Run the following app.
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var opts = {
cancel: 2,
options: ['Confirm', 'Help', 'Cancel'],
selectedIndex: 2,
destructive: 0,
title: 'Delete File?',
};
var button1 = Ti.UI.createButton({
title: 'Option_Dialog_no_acesibltyProperties',
top: 20
});
button1.addEventListener('click', function(e){
var dialog = Ti.UI.createOptionDialog(opts).show();
});
var button2 = Ti.UI.createButton({
title: 'Option_Dialog_with_LVH',
top: 150,
});
button2.addEventListener('click', function(e){
var dialog = Ti.UI.createOptionDialog(opts);
dialog.accessibilityLabel = "Option dialog2 label";
dialog.accessibilityValue = "Option dialog2 value";
dialog.accessibilityHint = "Option dialog2 hint";
dialog.show();
});
var button3 = Ti.UI.createButton({
title: 'Option_Dialog_with_HLV',
bottom: 150,
});
button3.addEventListener('click', function(e){
var dialog = Ti.UI.createOptionDialog(opts);
dialog.accessibilityHint = "Option dialog3 hint";
dialog.accessibilityLabel = "Option dialog3 label";
dialog.accessibilityValue = "Option dialog3 value";
dialog.show();
});
var button4 = Ti.UI.createButton({
title: 'Option_Dialog_with_LVH_hidden',
bottom: 20,
});
button4.addEventListener('click', function(e){
var dialog = Ti.UI.createOptionDialog(opts);
dialog.accessibilityLabel = "Option dialog4 label";
dialog.accessibilityValue = "Option dialog4 value";
dialog.accessibilityHint = "Option dialog4 hint";
dialog.accessibilityHidden = true ;
dialog.show();
});
win1.add(button1);
win1.add(button2);
win1.add(button3);
win1.add(button4);
win1.open();
2. Double touch the fourth button (with accessibility hidden)
Actual:
The option dialog with accessibility hidden is opened.On touching the option dialog, the device read aloud touched element.
Expected:
The option dialog with accessibility hidden is opened.On touching the option dialog, the device does not read aloud anything
This is also occurring on iOS. 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)