fix images missing alternate text in RAI Vision dashboard for accessibility #2463
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
fix images missing alternate text in RAI Vision dashboard for accessibility
[Programmatic Access – Responsible AI Dashboard – Image Explorer View>Select Instance]: Image does not have alternate text or a role of none or presentation present under "Selected Instance" dialog.
User Experience:
Visually impaired users who depend on screen reader and navigate in scan mode will not be able to understand the information provided or purpose of the image properly. Due to which it would be difficult to access controls present on the dialog efficiently.
Repro Steps:
Open RAI Dashboard
Navigate the "Vision Data Explorer" section, navigate the "Image Explorer View" tab and all the controls present under it.
Navigate to "Error Instances/Success instances" section.
Select an Error instance "Can".
"Selected Instance" dialog opens. Navigate all the controls present on the dialog.
Run the AI tool.
Observe and verify whether Image does have alternate text or a role of none or presentation or not.
Actual Result:
Image does not have alternate text or a role of none or presentation present under "Selected Instance" dialog.
Observation: Alt attribute is not defined for the image 26 present under "Error Instances" section.
Screen reader behavior:
NVDA and JAWS screen reader focus does not move to image in (Browse/VPC) mode.
When Narrator (Scan mode) focus moves to image, it announces as "Unlabeled graphic."
Expected Result:
Image should have alternate text or a role of none or presentation present for Error Instances " Image 26 Water bottle" under the "Selected Instance" dialog.
Note: The same issue exists throughout the application.
elements have alternate text or a role of none or presentation (image-alt - https://accessibilityinsights.io/info-examples/web/image-alt)
Issue:
Ensures
Element path:
#flyoutImage_26
Snippet:
How to fix:
Fix any of the following:
Element does not have an alt attribute
aria-label attribute does not exist or is empty
aria-labelled by attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role="none" or role="presentation"
Environment:
Chrome version 117.0.0.0
====
This accessibility issue was found using Accessibility Insights for Web 2.40.0 (axe-core 4.7.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
Screenshot of fastpass with zero errors after fix:

Checklist