Shubham Chawla
Shubham Chawla

Reputation: 131

Prevent Voice Over from reading readonly attribute in text input

Is there a way to prevent VoiceOver/TalkBack to read readOnly attribute from a text input using javascript/CSS?

<input type="text" readonly>

I don't want this readonly attribute to be read on VO.

Upvotes: 0

Views: 837

Answers (1)

slugolicious
slugolicious

Reputation: 17563

If you don't want "read only" to be announced, then remove the readonly attribute.

The screen reader is doing exactly what it is supposed to be doing. If a visually impaired user is using your website, and they're using VoiceOver to access it, and the put their focus on the field, if they don't hear "read only", how will they know that they can't type in that field?

Upvotes: 4

Related Questions