From 5d4aaa5b5faa595d1967eabe11fda9615d7ba1f6 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 22 Nov 2024 15:23:24 +0000 Subject: [a11y] Video - fix labels and make more detailed (#6635) * fix labels and make more detailed * move overall label to parent --- src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx | 5 +++++ .../com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerWeb.tsx | 8 +++++++- .../post-embeds/VideoEmbedInner/web-controls/ControlButton.tsx | 7 ++++--- .../util/post-embeds/VideoEmbedInner/web-controls/Scrubber.tsx | 4 +++- .../post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx | 5 +++-- .../post-embeds/VideoEmbedInner/web-controls/VolumeControl.tsx | 1 + 6 files changed, 23 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx index e9615fe63..75e544aca 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/TimeIndicator.tsx @@ -1,5 +1,7 @@ import {StyleProp, ViewStyle} from 'react-native' import {View} from 'react-native' +import {msg} from '@lingui/macro' +import {useLingui} from '@lingui/react' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' @@ -16,6 +18,7 @@ export function TimeIndicator({ style?: StyleProp }) { const t = useTheme() + const {_} = useLingui() if (isNaN(time)) { return null @@ -27,6 +30,8 @@ export function TimeIndicator({ return ( (null) @@ -49,7 +52,10 @@ export function VideoEmbedInnerWeb({ }, [lastKnownTime]) return ( - +