Skip to content

Commit ee5c850

Browse files
authored
Adding accessibility state (#687)
1 parent 989189c commit ee5c850

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/colorPicker/ColorSwatch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export default class ColorSwatch extends PureBaseComponent {
144144
style={[this.styles.container, style]}
145145
onLayout={this.onLayout}
146146
accessibilityLabel={Colors.getColorName(color)}
147+
accessibilityStates={this.props.selected ? ['selected'] : []}
147148
>
148149
{Colors.isTransparent(color) && (
149150
<Image source={transparentImage} style={this.styles.transparentImage} resizeMode={'cover'}/>

0 commit comments

Comments
 (0)