GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): read a waiting row's status to VoiceOver · pingdotgg/t3code@48455d0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/mobile/src/features/threads
    • thread-list-v2-items.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/mobile/src/features/threads/thread-list-v2-items.tsx‎

Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/thread-list-v2-items.tsx
+10-6Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,14 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
918918
: null,
919919
[handleMenuAction, snoozePresetActions, swipeActions.secondary, thread.title],
920920
);
921+
// VoiceOver reads the row as one element, so it carries what a waiting task waits on.
922+
const accessibilityLabel = [
923+
thread.title,
924+
waitingStatus?.label,
925+
props.hasQueuedMessages ? "messages queued to send" : undefined,
926+
]
927+
.filter(Boolean)
928+
.join(", ");
921929
const swipeAccessibilityHint =
922930
secondaryAction === null
923931
? `Opens the thread. Swipe left to ${primaryAction.label.toLowerCase()}.`
@@ -1123,9 +1131,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
11231131
interactionOpacity={rowAppearance.interactionOpacity}
11241132
className={rowAppearance.className}
11251133
accessibilityHint={swipeAccessibilityHint}
1126-
accessibilityLabel={
1127-
props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title
1128-
}
1134+
accessibilityLabel={accessibilityLabel}
11291135
accessibilityRole="button"
11301136
accessibilityState={{ selected }}
11311137
onPress={() => {
@@ -1155,9 +1161,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
11551161
interactionClassName={rowAppearance.interactionClassName}
11561162
interactionOpacity={rowAppearance.interactionOpacity}
11571163
accessibilityHint={swipeAccessibilityHint}
1158-
accessibilityLabel={
1159-
props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title
1160-
}
1164+
accessibilityLabel={accessibilityLabel}
11611165
accessibilityRole="button"
11621166
accessibilityState={{ selected }}
11631167
className={rowAppearance.className}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.