Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Restore accessible post photo position announcements

Anand Baburajan158a782b4c5c
diff --git a/web/apps/space/src/components/FileViewer.tsx b/web/apps/space/src/components/FileViewer.tsx
index 4fe9ff04d1..58204b40e0 100644
--- a/web/apps/space/src/components/FileViewer.tsx
+++ b/web/apps/space/src/components/FileViewer.tsx
@@ -13,6 +13,7 @@ import {
import { HugeiconsIcon } from "@hugeicons/react";
import { Box, Menu, MenuItem } from "@mui/material";
import { keyframes } from "@mui/material/styles";
+import { visuallyHidden } from "@mui/utils";
import {
spaceActionDoneDurationMs,
type SpaceActionPhase,
@@ -1448,6 +1449,19 @@ export const SpaceFileViewer: React.FC<SpaceFileViewerProps> = ({
},
}}
>
+ {!isDraftPost && (
+ <Box
+ component="span"
+ role="status"
+ aria-live="polite"
+ aria-atomic="true"
+ sx={visuallyHidden}
+ >
+ {postPhotoCount > 1
+ ? `Item ${postPhotoIndex + 1} of ${postPhotoCount}`
+ : null}
+ </Box>
+ )}
<Box
component="header"
data-space-viewer-chrome="true"