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

A11Y-640: Expandable button have inappropriate reading order

    XMLWordPrintable

Details

    Description

      Issue Summary

      the content associated with the "Repositories" expandable button does not have an appropriate reading order.

      Steps to Reproduce

      1. Open the "Your work" page.
      2. Navigate onto the mentioned button with a screen reader and activate it.
      3. Arrow down onto the expandable content from the button.
      4. Note that the content associated with it is available at the main content area (Below the main content area).

      Screenshot

      Actual Result

      When the “Repositories” button is expanded, the expanded content of this button is available at the end of the page for screen reader users. This is because this content is not coded directly after the button in the DOM. It is instead coded at the end of the page. This inappropriate reading order might disorient the users of screen readers. That the content is available at the end might confuse or mislead them.

      Expected Result

      Content must have an appropriate reading order. Assistive technologies navigate content using the order in which elements appear in the DOM. Hence, make sure that the content is programmatically ordered in such a way that it provides an appropriate reading order to the users of assistive technologies. Make sure that the content that gets available on expanding the button is coded directly after the expandable button in the DOM. This will create an appropriate reading order for the users of assistive technologies. For instance, this will enable them to arrow down onto the expanded content when the button is expanded.

      Code Snippet

      <a role="button" aria-expanded="true" aria-haspopup="true" id="repositories-menu-trigger" tabindex="0" href="#...u">Repositories</a>
      <a href="/projects/APL/repos/text-styles/browse" class="repository-link" data-entity="repository" data-repository-id="3742" data-repository-slug="text-styles" data-project-id="3387" data-project-key="APL" title="text-styles">
      (...)
      <div class="item-wrapper"><strong class="item-name">text-styles</strong><p class="item-description">Apple OS Common</p></div>
      </a> 

      Environment

      MacBook Pro (14-inch, 2021)
      macOs Ventura 13.5
      Chrome - Version 119.0.6045.123 (Official Build) (64-bit)
      Firefox- Version 93.0 (32-bit)
      Safari- Version 15.3 (17612.4.9.1.5)
      JAWS- Version 2023
      NVDA- Version 2023.2
      Voiceover - Version Latest

      Workaround

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            71c7b0ef4382 Malleswara Rao Konthala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: