Add better a11y desc to card
This commit is contained in:
@@ -64,6 +64,7 @@ export function VideoPostCard({
|
|||||||
*/
|
*/
|
||||||
if (!AppBskyEmbedVideo.isView(embed)) return null
|
if (!AppBskyEmbedVideo.isView(embed)) return null
|
||||||
|
|
||||||
|
const author = post.author
|
||||||
const text = AppBskyFeedPost.isRecord(post.record) ? post.record?.text : ''
|
const text = AppBskyFeedPost.isRecord(post.record) ? post.record?.text : ''
|
||||||
const likeCount = post?.likeCount ?? 0
|
const likeCount = post?.likeCount ?? 0
|
||||||
const repostCount = post?.repostCount ?? 0
|
const repostCount = post?.repostCount ?? 0
|
||||||
@@ -72,7 +73,8 @@ export function VideoPostCard({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
label={_(msg`View video`)}
|
accessibilityHint={_(msg`Tap to view video in immersive mode.`)}
|
||||||
|
label={_(msg`Video from ${author.handle}: ${text}`)}
|
||||||
to={{
|
to={{
|
||||||
screen: 'VideoFeed',
|
screen: 'VideoFeed',
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
Reference in New Issue
Block a user