如何不宣布静态和按钮窗口小部件集体扑朔迷离

发布于 2025-02-02 19:33:01 字数 68 浏览 4 评论 0原文

我正在使用包含大量静态和动态按钮的卡。我想如何不由屏幕阅读器共同宣布所有这些信息。当我向左滑动时,预期行为只宣布了一个元素

I'm using a card which contained a lot of static and dynamic buttons . I WANT how to not announce all these information collectively by the screen reader. Expected behaviour only announced one element as i swipe right of left

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

豆芽 2025-02-09 19:33:01

没有代码,就不容易回答这个问题。如果您将其标记为一张卡,则该卡中的所有信息都可能宣布。为了避免这种情况,您可以给卡容器一个ARIA标签。然后将读取标签,而不是容器内的内容。

Without the code it's not easy to answer this. If you tab to one card, all the information inside that card is potential announced. To avoid this you can give the card container an aria label. The label will then be read instead of the content inside the container.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文