Issue Summary

      The "Copy commit hash" buttons do not receive keyboard focus.

      Steps to Reproduce

      1. Open the home page and activate the "Project" link in the header.
      2. Activate “PROJ" project.
      3. Activate any repository link from the “name” column of the data table, which will direct you to the source page.
      4. Now activate the Commits link from the left navigation.
      5. Navigate to the data table present in main content.
      6. Using tab key, navigate through the mentioned buttons present in "Commit" column.
      7. Observe that the buttons are not keyboard focusable.

      Screen Recording

      PROJ _ awesome-go - Bitbucket Server - Google Chrome 2025-03-05 14-16-23.mp4

      Actual Results

      The "Copy commit hash" buttons under the "Commit" column of the data table present in the main content area are not keyboard focusable. It has been removed from focus order by using the tabindex="-1" on the <button> elements. 

      As a result, the keyboard and screen reader users might not be able to access the functionality of the button.

      Expected Results

      Make sure that the buttons are keyboard focusable and operable. In this case, remove tabindex="-1" from the <button> elements. 

      Additionally, update the script of buttons to make sure that it is focusable and operable.

      Code snippet

      <button class="aui-button aui-button-compact commit-hash-icon aui-button-subtle " autocomplete="off" role="button" aria-label="Copy commit hash" resolved="" aria-describedby="aui-tooltip"><span ...></span></button>

      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.7
      Chrome - Version 119.0.6045.105 (Official Build) (64-bit)
      Firefox- Version 92.0 (64-bit)
      Safari- Version 16.6 (18615.3.12.11.2)
      JAWS- Version 2023
      NVDA- Version 2021.2
      Voiceover - Version Latest

            [BSERV-19979] Commits: Buttons not focusable with a keyboard

            There are no comments yet on this issue.

              Unassigned Unassigned
              75e99cd1893f Naeem Solkar
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated: