[英]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.