Skip to content
TypeScript

fix(web): screen readers no longer read out a secret typed into the request card (#31653)

Julius Marmingec0cb75e815a0
diff --git a/apps/web/src/components/chat/SecretRequestCard.tsx b/apps/web/src/components/chat/SecretRequestCard.tsx
index 2ec2923b88b..bb705f7b1cc 100644
--- a/apps/web/src/components/chat/SecretRequestCard.tsx
+++ b/apps/web/src/components/chat/SecretRequestCard.tsx
@@ -124,9 +124,8 @@ function PendingSecretRequestForm(props: {
<div className="min-w-0 flex-1">
<Input
id={inputId}
- // Password fields prompt to save credentials; this secret is not a login.
- type="text"
- className="[-webkit-text-security:disc]"
+ // A CSS-masked text field still exposes its value to screen readers.
+ type="password"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"