Skip to content

Commit

Permalink
feat(exoflex): add default a11y role for chip (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
oshimayoan authored May 4, 2020
1 parent d3247d0 commit d3d3bcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/exoflex/src/components/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function Chip({
textStyle,
icon,
iconStyle,
accessibilityRole,
...otherProps
}: ChipProps) {
let { colors, style: themeStyle } = useTheme();
Expand All @@ -39,6 +40,7 @@ function Chip({

return (
<TouchableOpacity
accessibilityRole={accessibilityRole || 'button'}
activeOpacity={0.7}
disabled={!onPress}
onPress={onPress}
Expand Down

0 comments on commit d3d3bcf

Please sign in to comment.