fix: add accessibility hint to FeedItem
Provide meaningful accessibilityHint for screen readers instead of empty string. Now describes that selecting the item opens the feed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -171,6 +171,7 @@ function FeedItem({
|
|||||||
onPress: () => void
|
onPress: () => void
|
||||||
}) {
|
}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
const {_} = useLingui()
|
||||||
const {
|
const {
|
||||||
state: hovered,
|
state: hovered,
|
||||||
onIn: onHoverIn,
|
onIn: onHoverIn,
|
||||||
@@ -182,7 +183,7 @@ function FeedItem({
|
|||||||
<Pressable
|
<Pressable
|
||||||
accessibilityRole="link"
|
accessibilityRole="link"
|
||||||
accessibilityLabel={feedInfo.displayName}
|
accessibilityLabel={feedInfo.displayName}
|
||||||
accessibilityHint=""
|
accessibilityHint={_(msg`Opens ${feedInfo.displayName} feed`)}
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onHoverIn={onHoverIn}
|
onHoverIn={onHoverIn}
|
||||||
onHoverOut={onHoverOut}
|
onHoverOut={onHoverOut}
|
||||||
|
|||||||
Reference in New Issue
Block a user