react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Accessibility Issues

Open avnerarbel1 opened this issue 1 year ago • 0 comments

The DropDownPicker has several accessibility issues. When in VoiceOver mode, the element should declare its role and state.

Level A - 1.3.1 Info and Relationships -

An easy fix - add role and state to the dropdown: <TouchableOpacity accessibilityRole='combobox' accessibilityState={{expanded: open}} style={_style} onPress={__onPress} onLayout={__onLayout} {...props} ref={onRef} pointerEvents={pointerEvents} disabled={disabled} testID={testID}>

In addition, the accessibility properties should be exported: accessible accessibilityRole accessibilityState accessibilityLabel

avnerarbel1 avatar Jun 17 '24 08:06 avnerarbel1