Skip to content

Commit 13ae811

Browse files
fix: added accessibility to the clear text button
1 parent b2b6b55 commit 13ae811

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/pluggableWidgets/gallery-text-filter-native/src/components/FilterComponent.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ export default function FilterComponent(props: FilterComponentProps): ReactEleme
9595
/>
9696
{value !== "" ? (
9797
<TouchableOpacity
98+
accessibilityRole="button"
99+
accessibilityLabel="Clear text"
98100
testID={`${props.name}-clear-text-button`}
99101
onPress={onPressClearTextIcon}
100102
style={props.styles?.textInputClearIcon}

0 commit comments

Comments
 (0)