简体   繁体   English

使文本消息可供屏幕阅读器访问

[英]Making text messages accessible to screen reader

I am building a chat bot and currently working on some accessibility features. 我正在构建一个聊天机器人,目前正在开发一些辅助功能。 I am wondering what is the best way to allow users to read through old messages. 我想知道什么是允许用户阅读旧邮件的最佳方法。 In an earlier build I solved this by making the message logs tab-able, but I don't think this is an appropriate solution (as far as I know only buttons/links should be tab-able). 在较早的版本中,我通过将消息日志设置为可选项卡来解决此问题,但我认为这不是合适的解决方案(据我所知,只有按钮/链接应该是可选项卡的)。 Is there a preferred way of doing this, perhaps with hot keys? 是否有首选的方法(例如使用热键)? For reference I am using Voice Over to test accessibility. 作为参考,我正在使用Voice Over测试可访问性。

Generally screenreader users rely on the arrow keys (or swiping, on a touch device) to reach text content which isn't interactive. 通常,屏幕阅读器用户依靠箭头键(或在触摸设备上滑动)来访问非交互式的文本内容。 You're correct that only links and form elements should be tabbable. 您是正确的,只有链接和表单元素才是可Tabable的。 In this case, assuming your old messages appear as text, I don't think you will need to take any specific action to make them accessible. 在这种情况下,假设您的旧邮件显示为文本,则我认为您无需采取任何特定操作即可将其访问。 Test it without any additional markup to confirm this. 在不进行任何其他标记的情况下进行测试以确认这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将屏幕阅读器可访问的文本与 video.js 元素相关联,例如播放按钮 - How to associate screen reader-accessible text with a video.js element, such as the Play button 萤幕阅读器闪烁文字 - Blinking text for screen reader 需要使Tab和Accordion插件可访问/屏幕阅读器兼容 - Need to make Tab and Accordion Plugin Accessible/Screen reader compatible 屏幕阅读器aria live断言文本被打断 - Screen reader aria live assertive text is interrupted 如果aria标签更改,则使屏幕阅读器重新读取 - Making a screen reader reread if the aria-label changes 为屏幕阅读器设置文本并在屏幕阅读器中隐藏子项 - Set text for screen reader and hide children from screen readers 如何使屏幕阅读器用户可以访问必填字段和表单验证的指示? - How to make indication of mandatory fields and form's validation accessible for screen reader users? 如何创建屏幕阅读器可访问的AJAX区域和DOM插入/删除更新? - How to create screen reader accessible AJAX regions and DOM insert/remove updates? 工具提示屏幕阅读器将读取的文字,但文字在视觉上保持隐藏 - Tooltip screen reader will read text of but text to remain visually hidden 如何确定屏幕阅读器阅读文本的顺序? - How can I determine the order in which text is read by a screen reader?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM