Skip to content

Commit 71783c0

Browse files
vitalyiegorovclaude
andcommitted
fix(mobile): screen readers hear the account the badge shows
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 0f770e4 commit 71783c0

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎apps/mobile/src/features/threads/NewTaskDraftScreen.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,11 @@ export function NewTaskDraftScreen(props: {
17451745
<View className="min-w-0 flex-1 flex-row items-center justify-end gap-2">
17461746
<View className="min-w-0 shrink">
17471747
<ComposerInlineControl
1748-
accessibilityLabel="Model and reasoning settings"
1748+
accessibilityLabel={
1749+
flow.selectedModelOption?.providerBadge
1750+
? `Model and reasoning settings, ${flow.selectedModelOption.providerBadge.displayName} account`
1751+
: "Model and reasoning settings"
1752+
}
17491753
disabled={isComposerInteractionLocked}
17501754
emphasized
17511755
renderIcon={(size) => (

‎apps/mobile/src/features/threads/ProviderSubagentBar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function ProviderSubagentBar(props: {
4646
{/* Only the text is one element, so "Open parent" stays reachable. */}
4747
<View
4848
accessible
49-
accessibilityLabel={`${modelDescription} subagent, ${statusLabel}. It runs on its own and cannot take messages.`}
49+
accessibilityLabel={`${modelDescription} subagent${props.provider?.badge ? ` on the ${props.provider.badge.displayName} account` : ""}, ${statusLabel}. It runs on its own and cannot take messages.`}
5050
className="min-w-0 flex-1 gap-0.5"
5151
>
5252
<View className="min-w-0 flex-row items-center gap-1.5">

‎apps/mobile/src/features/threads/ThreadComposer.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,11 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
11221122
/>
11231123
<View className="min-w-0 shrink">
11241124
<ComposerInlineControl
1125-
accessibilityLabel="Model and reasoning settings"
1125+
accessibilityLabel={
1126+
currentModelOption?.providerBadge
1127+
? `Model and reasoning settings, ${currentModelOption.providerBadge.displayName} account`
1128+
: "Model and reasoning settings"
1129+
}
11261130
emphasized
11271131
renderIcon={(size) => (
11281132
<ProviderAccountIcon

0 commit comments

Comments
 (0)