diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-11-22 15:23:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 15:23:24 +0000 |
commit | 5d4aaa5b5faa595d1967eabe11fda9615d7ba1f6 (patch) | |
tree | 9393ff40a5e549ea587e64af21134091068eb314 /src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx | |
parent | 437bdcf9a9b3c78f1d9c5aae35757e78db7ad062 (diff) | |
download | voidsky-5d4aaa5b5faa595d1967eabe11fda9615d7ba1f6.tar.zst |
[a11y] Video - fix labels and make more detailed (#6635)
* fix labels and make more detailed * move overall label to parent
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx index acd4d1aae..8e134d221 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/web-controls/VideoControls.tsx @@ -313,13 +313,14 @@ export function Controls({ onPointerEnter={onPointerMoveEmptySpace} onPointerMove={onPointerMoveEmptySpace} onPointerLeave={onPointerLeaveEmptySpace} - accessibilityHint={_( + accessibilityLabel={_( !focused ? msg`Unmute video` : playing ? msg`Pause video` : msg`Play video`, )} + accessibilityHint="" style={[ a.flex_1, web({cursor: showCursor || !playing ? 'pointer' : 'none'}), @@ -401,7 +402,7 @@ export function Controls({ <ControlButton active={isFullscreen} activeLabel={_(msg`Exit fullscreen`)} - inactiveLabel={_(msg`Fullscreen`)} + inactiveLabel={_(msg`Enter fullscreen`)} activeIcon={ArrowsInIcon} inactiveIcon={ArrowsOutIcon} onPress={onPressFullscreen} |