Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13890] iOS: Accessibility: Accessibility does not work on Slider Control

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-09-15T21:20:46.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsiOS
Labelsqe-3.1.1
ReporterDhirendra Jha
AssigneeMuhammad Dadu
Created2013-05-17T10:42:57.000+0000
Updated2017-03-29T20:23:17.000+0000

Description

iOS: Accessibility: Accessibility does not work on Slider Control This is not a regression. Issue also exist on SDK 3.1.0. Steps: 1) Run Acceptance Access_1109 on Accessibility module. 2) Touch the second slider (with LVH defined in sequence) Actual Result: Device just reads "50.0". Expected Result: Device should read aloud LVH(This is slider2 label , This is slider2 value , This is slider2 hint) followed by 'seek control'value(android) and value adjustable
var win = Ti.UI.createWindow({
		title : 'Welcome',
		backgroundColor: "#fff"});
		
		var slider1 = Titanium.UI.createSlider({
	    top: 50,
	    min: 0,
	    max: 100,
	    width: '100%',
	    value: 50
	    });
	    
		var label1 = Ti.UI.createLabel({
		    text: slider1.value,
		    width: '100%',
		    height: 'auto',
		    top: 30,
		    left: 0,
		    textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
		    });
		
		slider1.addEventListener('change', function(e) {
		    label1.text = String.format("%3.1f", e.value);
		});
		
		var slider2 = Titanium.UI.createSlider({
	    top: 150,
	    min: 0,
	    max: 100,
	    width: '100%',
	    value: 50,
	    accessibilityLabel: "This is slider2 label",
		accessibilityValue: 'This is slider2 value',
		accessibilityHint: "This is slider2 hint"
	    });
	    
		var label2 = Ti.UI.createLabel({
		    text: slider2.value,
		    width: '100%',
		    height: 'auto',
		    top: 130,
		    left: 0,
		    textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
		    });
		
		slider2.addEventListener('change', function(e) {
		    label2.text = String.format("%3.1f", e.value);
		});
		
		var slider3 = Titanium.UI.createSlider({
	    bottom: 130,
	    min: 0,
	    max: 100,
	    width: '100%',
	    value: 50,
	    accessibilityHint: "This is slider3 hint ",
	    accessibilityLabel: "This is slider3 label",
		accessibilityValue: 'This is slider3 value',
		});
	    
		var label3 = Ti.UI.createLabel({
		    text: slider3.value,
		    width: '100%',
		    height: 'auto',
		    bottom: 150,
		    left: 0,
		    textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
		    });
		
		slider3.addEventListener('change', function(e) {
		    label3.text = String.format("%3.1f", e.value);
		});
		
		var slider4 = Titanium.UI.createSlider({
	    bottom: 30,
	    min: 0,
	    max: 100,
	    width: '100%',
	    value: 50,
	    accessibilityLabel: "This is slider4 label",
		accessibilityValue: 'This is slider4 value',
		accessibilityHint: "This is slider4 hint",
		accessibilityHidden: true
	    });
	    
		var label4 = Ti.UI.createLabel({
		    text: slider4.value,
		    width: '100%',
		    height: 'auto',
		    bottom: 50,
		    left: 0,
		    textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
		    });
		
		slider4.addEventListener('change', function(e) {
		    label4.text = String.format("%3.1f", e.value);
		});
		
		
		win.add(slider1);
		win.add(slider2);
		win.add(slider3);
		win.add(slider4);
		win.add(label1);
		win.add(label2);
		win.add(label3);
		win.add(label4);
		win.open();

Comments

  1. Muhammad Dadu 2014-09-15

    I believe this ticket is invalid. Steps taken to reproduce: - Created an app.js with the code provided. - Compiled it using the Titanium SDK in Xcode - Ran the application on a iPhone 4s Specs: - Titanium SDK master from 09-15-2014 - Xcode 6 Results: - First slider reads out the value when sliding - Second slider reads aloud the defined text - Third slider reads aloud the defined text - Fourth one hides the slider for accessibility
  2. Lee Morris 2017-03-29

    Closing ticket with reference to the above comment.

JSON Source