Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13279

Branches : Tooltip content inaccessible for keyboard only user

    XMLWordPrintable

Description

    Issue Summary

    In the Branches section, the tooltip available on the count of the Behind/Ahead is inaccessible for keyboard-only users.

    Steps to Reproduce

    1. Launch the URL
    2. Navigate to the Behind/Ahead section and try to hover on the count with the mouse and try to navigate it with the keyboard.

    Screenshot

     

    Screen recording

    Screen Recording 2022-05-02 at 4.30.28 PM.mov

    Actual Results

    In the branches section, the tooltip which is available on mouse hover for the count of Behind/Ahead is not accessible by keyboard and screen reader user. The element uses device-dependent event handlers and is therefore not accessible by keyboard alone. This made it difficult for users with mobility and visual impairments to access the tooltip content. 

    Expected Results

    The following changes could be implemented to make the tooltip accessible:

    • Provide appropriate textual description via aria-label attribute for the element.
    • Display the information available in the tooltip as plain text and use CSS for formatting.
    • Specify the ARIA role "tooltip" for the information displayed on hover. Specify a unique id attribute for the tooltip and reference it via the aria-describedby attribute of the element.
    • Modify the script to make the tooltip information available on hover as well as on focus. In addition along with mouse-specific event handlers, use keyboard specific event handlers, such as "onfocus", "onblur", etc. to make the functionality accessible for keyboard-only users.

    Workaround

    Currently, there is no known workaround for this behaviour. A workaround will be added here when available

    Bug Ref: 742031

    Attachments

      Issue Links

        Activity

          People

            cb3955cd8c67 Carlos Sanchez Rosa
            2b3f463b7e2d Akhilesh Paradhi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: