papercups-io/papercups
Accessibility - buttons should have discernible text
Aberta
#885 aberto em 17 de jun. de 2021
buggood first issue
Métricas do repositório
- Stars
- (6.032 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Describe the bug The button to toggle the chat widget doesn't have discernible text.
To Reproduce Steps to reproduce the behavior:
- Go to a page with the Papercups chat widget installed.
- Check accessibility with axe DevTools
- See
Buttons must have discernible textissue 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.