On iOS, accessibilityValue is designed to be the generic purpose attribute that changes based on the object's state.
It's sometimes used for numeric values, but it's also used, for example, the text within a textfield and the state of a UISwitch.
If just the accessibilityValue changes, VoiceOver will be able to speak only the updated value instead of re-speaking the whole label, which may be desirable.
So it could be put in the accessibilityLabel, but I would put it in the accessibilityValue
Thanks
On Aug 29, 2012, at 8:58 AM, "Paul J. Adam" < email@hidden> wrote: Thanks for pointing out that thread. Makes sense, though it seems like accessibilityValue is used more for numeric values.
Use only when the label of the element differs from a value. For example: A volume slider has a label of "Volume", but a value of "60%".
Is accessibilityValue a better place for "expanded/collapsed" than adding it to the accessibilityLabel? Would it make more sense to put it in the accessibilityLabel if there is an arrow visually present that changes state? This way "expanded/collapsed" would be kind of like the alt text for the arrow which changes state?
Here are 2 screenshots showing the expanded/collapsed buttons.
Collapsed: Expanded:
My past response was blocked due to using images in the email. Hopefully this will go through now.
Paul J. Adam
Accessibility Evangelist Deque Systems
On Aug 9, 2012, at 10:25 AM, Boris Dušek < email@hidden> wrote: This was discussed very recently: http://lists.apple.com/archives/accessibility-dev/2012/Jul/msg00008.html
Best regards, Boris Dušek BRAILCOM,o.p.s.
9. 8. 2012 v 17:17, "Paul J. Adam" <email@hidden>: Does UIAccessibility include the ability to set the state of a button which expands and collapses a sub menu? Something like aria-expanded=true/false? Would this info have to be placed in the accessibility hint and changed dynamically? Something like "Expands the sub menu" and "Collapses the sub menu"?
Same sort of question for a button which expands and collapses to show/hide additional text information on the screen?
Thanks!
Paul J. Adam
Accessibility Evangelist Deque Systems
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|