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

Pull Request Diff tab : Focus indicator is missing

    XMLWordPrintable

Details

    Description

      Issue Summary

      The visual focus indicator is missing altogether.
      Element description: Filename link (e.g gitignore link)
      Element location: Below "Filter file tree" button
      Description of issue: Above link is missing a visual focus indicator.

      Steps to Reproduce

      1. Step 1

      Actual Results

      Actual results

      Expected Results

      Expected Results

      Fix Information
      RULE :
      All focusable elements MUST have a visual focus indicator when in focus.

      Focusable elements SHOULD have enhanced visual focus indicator styles.

      HOW TO FIX:
      Common keyboard focus indicator solutions include:
      1. A 2px box around the focused element
      2. A change in the background color of the focused element
      3. The addition of an icon, such as an arrow, next to a menu item
      4. The addition of a thick line under or next to the focused element
      5. A distinctive change to the text of the component such as making it bold and/or underlined
      6. Use the default browser focus indicator. NOTE: Since each browser has its own default focus indicator style, check each of the major browsers (Chrome, Firefox, Edge, IE, Safari) to ensure the default focus indicator is visible as you tab through the page.

      A keyboard focus indicator can take different forms; it does not have to be a boring box. But the goal is to provide a difference in contrast between a component's default and focused states of at least 3 to 1 or another distinctive visual change.

      REFERENCE:
      Deque University: https://dequeuniversity.com/class/input-methods2/keyboard-input/visual-focus-indicator

      BACKGROUND:
      When a visible keyboard focus indicator is not provided, sighted keyboard users will have no idea which link or control has focus making it extremely difficult, if not impossible, to interact with the content. Browsers provide default focus indicators for natively focusable elements, but these may be very difficult to see depending on the color of the control and the page background. In addition, custom elements often have no visible focus indicator at all. Ideal focus indicators are designed to provide good contrast with links and controls and their backgrounds. Focus indicators with good contrast make it much easier to track focus as a keyboard user navigates through the page.

      Screenshot

      Screen Recording

      screen recording

      Workaround

      workaround

      Bug Ref: 737350

      Attachments

        Issue Links

          Activity

            People

              cb3955cd8c67 Carlos Sanchez Rosa
              12b69dcabe29 Matthew Brennan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: