Skip to content

Commit

Permalink
fix: allow pass-through of accessibilityRole on Chip (#4327)
Browse files Browse the repository at this point in the history
  • Loading branch information
meatnordrink authored Jul 27, 2024
1 parent bc0ecb1 commit b1fd739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ const Chip = ({
disabled = false,
background,
accessibilityLabel,
accessibilityRole = 'button',
closeIconAccessibilityLabel = 'Close',
onPress,
onLongPress,
Expand Down Expand Up @@ -323,7 +324,7 @@ const Chip = ({
rippleColor={rippleColor}
disabled={disabled}
accessibilityLabel={accessibilityLabel}
accessibilityRole="button"
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
testID={testID}
theme={theme}
Expand Down

0 comments on commit b1fd739

Please sign in to comment.