Create Pull Request: Unnecessary alt text for decorative images

XMLWordPrintable

    Issue Summary

    The decorative image present for "ansible admin" is provided with a textual description such as "ansible admin".

    Note: A similar issue is observed on multiple tab present on the "View Pull Request" page.

    Steps to Reproduce

    1. Navigate to the mentioned page.
    2. Navigate to the "Blame" button and activate it present in the "Diff" tab.
    3. Inspect the code of the mentioned decorative images.
    4. Notice that decorative images have an "alt" attribute with text that describes the decorative image.

    Screenshot 1

    Screenshot 2

    Screenshot 3

    Actual Results

    Decorative images have been given descriptive alternate text "ansible admin" and "George Kalpakas authored on 15 September 2018" present in the "Diff" and "Commits" tabs respectively which was found to be unnecessary as they do not convey any additional or important information to screen reader users.

    Expected Results

    Ensure that decorative images are hidden from screen readers. Apply the following changes:
    • Remove the textual description in the form of hidden text from the source code.
    • Hide the image using aria-hidden="true" attribute.

    Workaround

    Currently, there is no known workaround for this behaviour.

    Environment 

    MacBook Pro (16-inch, 2019)
    macOS 13.4.1 (c) (22F770820d)
    Chrome - Version 115.0.5790.170 (Official Build) (x86_64)
    Firefox- Version 114.0 (64-bit)
    Safari- Version 16.5.2 (18615.2.9.11.10)
    JAWS- Version 2023.2306.28
    NVDA- Version 2022.2.2
    Voiceover - Version Latest

      1. image-2024-02-21-17-30-22-140.png
        993 kB
        Varsha Bansode
      2. Screenshot 2023-10-03 at 12.52.19 PM.png
        686 kB
        Rahil Shaikh
      3. Screenshot 2023-10-06 at 5.37.50 PM.png
        604 kB
        Rahil Shaikh

            Assignee:
            Carlos Sanchez Rosa
            Reporter:
            Rahil Shaikh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: