Skip to content

Accessibility Issues with User Feedback Widget #23288

Closed

Description

@devinsm

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.29.2

Description

The dialog opened by Sentry.showReportDialog is not accessible. See the WAI-ARIA Authoring Practices guidance on accessible modals.

Some specific issues which need to be fixed:

  • Tab and Shift + Tab should not move focus to elements outside the modal (they currently can)
  • When the modal loads, the first input of the form should receive focus (currently nothing in the modal is focused when the modal loads)
  • The "Close" button is rendered using an anchor tag without an href attribute. As a result it is not in the tab sequence and keyboard users are not able to use it. To fix this, a button element should be used instead. Since the element does not cause navigation, the button element will also have the proper semantics and will improve the experience for users of assistive technology.
  • The outermost div of the dialog needs role set to dialog
  • The outermost div of the dialog needs aria-modal set to true
  • The outermost div of the dialog needs aria-labelledby set to the id of the modal's h2

Activity

  1. devinsm commented on Jan 9, 2021

    @devinsm
    Author

    I would be happy to open a PR. I tried to start a PR, but got stuck with this block of code:
    https://github.com/getsentry/sentry-javascript/blob/a833f0ec0a186f0672a536ea8f7d3b129a71a4fe/packages/browser/src/helpers.ts#L191-L215

    It looks like the modal code is loaded from an external source at runtime. Is the modal code not open source?

  2. kamilogorek commented on Jan 25, 2021

    @kamilogorek
    Contributor

    Transferred the issue, as User Feedback Dialog lives in this repository.

  3. github-actions commented on Feb 15, 2021

    @github-actions
    Contributor

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

  4. self-assigned this
    on Feb 19, 2021
  5. added a commit that references this issue on Mar 2, 2021
    6c878d3
  6. locked and limited conversation to collaborators on Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions