Skip to content

Commit 8882d41

Browse files
committed
feat: ensure TalkBack can read content
1 parent 8c74135 commit 8882d41

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

src/trustBadge/index.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,21 @@ const TrustBadgeComponent = ({
111111
return (
112112
<View style={{ flexBasis: scaled(trustBadgeHeight) }}>
113113
<View style={styles.flex}>
114-
<TouchableOpacity onPress={handleTrustBadgePress}>
115-
{variant === 'Tick' ? (
116-
<Tick />
117-
) : (
118-
<ProofPoint claimIcons={getClaimIcons(offers)} />
119-
)}
120-
</TouchableOpacity>
114+
<View
115+
style={styles.flex}
116+
accessible={true}
117+
accessibilityRole="button"
118+
accessibilityLabel="Sustainability claims verified by Provenance"
119+
accessibilityHint="Opens details"
120+
>
121+
<TouchableOpacity onPress={handleTrustBadgePress}>
122+
{variant === 'Tick' ? (
123+
<Tick />
124+
) : (
125+
<ProofPoint claimIcons={getClaimIcons(offers)} />
126+
)}
127+
</TouchableOpacity>
128+
</View>
121129

122130
{overlay && (
123131
<Modal

0 commit comments

Comments
 (0)