Reputation: 131
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
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