papercups-io/papercups

Accessibility - buttons should have discernible text

Open

#885 建立於 2021年6月17日

在 GitHub 查看
 (7 留言) (1 反應) (0 負責人)Elixir (6,032 star) (566 fork)batch import
buggood first issue

描述

Describe the bug The button to toggle the chat widget doesn't have discernible text.

To Reproduce Steps to reproduce the behavior:

  1. Go to a page with the Papercups chat widget installed.
  2. Check accessibility with axe DevTools
  3. See Buttons must have discernible text issue on <button class="Papercups-toggleButton css-1lzvboz">

Expected behavior All buttons should have discernible text, so that screen readers can properly present the page to people with low or no vision.

Additional context Fixing this is basically following one of the solutions in https://dequeuniversity.com/rules/axe/4.2/button-name?application=rocketvalidator - basically adding a aria-label attribute with the text Open chat widget for example.

貢獻者指南