Skip to content

Commit 16b0985

Browse files
committed
fix(mobile): announce the ChatGPT limit notice to screen readers
1 parent f243061 commit 16b0985

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ export function UsageLimitRecoveryCard({
114114
},
115115
};
116116
return (
117-
<View className="mx-3 mb-2 flex-row gap-2 rounded-xl border border-warning-foreground/25 bg-screen p-3">
117+
<View
118+
accessibilityRole={chatGptLimit ? "alert" : undefined}
119+
className="mx-3 mb-2 flex-row gap-2 rounded-xl border border-warning-foreground/25 bg-screen p-3"
120+
>
118121
{chatGptLimit ? (
119122
<View className="pt-0.5">
120123
<ProviderIcon provider="codex" size={16} />

0 commit comments

Comments
 (0)