Add better a11y desc to card

This commit is contained in:
Eric Bailey
2025-01-18 18:15:05 -06:00
parent c8f276befc
commit 29ef0d9422
+3 -1
View File
@@ -64,6 +64,7 @@ export function VideoPostCard({
*/
if (!AppBskyEmbedVideo.isView(embed)) return null
const author = post.author
const text = AppBskyFeedPost.isRecord(post.record) ? post.record?.text : ''
const likeCount = post?.likeCount ?? 0
const repostCount = post?.repostCount ?? 0
@@ -72,7 +73,8 @@ export function VideoPostCard({
return (
<Link
label={_(msg`View video`)}
accessibilityHint={_(msg`Tap to view video in immersive mode.`)}
label={_(msg`Video from ${author.handle}: ${text}`)}
to={{
screen: 'VideoFeed',
params: {