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

Branches : Expandable buttons have inappropriate reading order

      Issue Summary

      The content associated with the "Source branch" and "Branch actions" expandable buttons do not have an appropriate reading order.

      Steps to Reproduce

      1. Select "Projects" from the header.
      2. Select any of the project from the main content area.
      3. Select any of the repositories.
      4. Navigate onto the "Branches" link in the side navigation and activate it.
      5. Navigate onto the mentioned buttons with a screen reader using virtual Up/Down arrow keys and activate any of them.
      6. Arrow down onto the expandable content from the buttons.
      7. Note that the content associated with them is not coded directly after the expandable buttons.

      Screen Recording

      Screen Recording 2025-03-06 at 12.41.04 PM.mov

      Screenhot

      Actual Result

      When the "Source branch" and "Branch actions" buttons are expanded, the expanded content of these buttons is available at the end of the page for screen reader users. This is because this content is not coded directly after the buttons in the DOM. It is instead coded at the end of the DOM. 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 Results

      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 buttons is coded directly after the expandable buttons 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 buttons are expanded.

      Code Snippet

      <button aria-expanded="true" ...>Branch actions</button>
      <ul>
        <li><a href="...">Compare</a></li>
        ...
      </ul>

      Workaround

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

      Environment

      MacBook Pro (16-inch, 2021)
      macOs Sonoma 14.3.1
      Chrome - Version 119.0.6045.123 (Official Build) (64-bit)
      Firefox- Version 93.0 (32-bit)
      Safari- Version 17.3.1 (19617.2.4.11.12)
      JAWS- Version 2023
      NVDA- Version 2024.3
      Voiceover - Version Latest

            [BSERV-19983] Branches : Expandable buttons have inappropriate reading order

            There are no comments yet on this issue.

              Unassigned Unassigned
              773dd3a38dd5 Cynthia Singh
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: