fix luminosity ratio of RAI Vision dashboard success and failure instances text to background for accessibility #2444
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 luminosity ratio of RAI Vision dashboard success and failure instances text to background for accessibility
[Visual Requirement – Responsible AI Dashboard – Vision Data Explorer>Image Explorer View]: Luminosity ratio of Success Instances "27" numeric value is less than 4.5:1.
User Experience:
Low vision users will get impacted as they will not be able to see the controls such as static text/numeric value present on the page properly & will face difficulties while reading the content on the page if the luminosity ratio of the any control does not meet the minimum requirement of 4.5:1 ratio.
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 the "Success Instances" section.
Observe weather luminosity ratio of Success Instances count "27" numeric value with respect to its background color is greater than 4.5:1 or not.
Actual Result:
Luminosity ratio of Success Instances "27" numeric value with respect to its background color is 4.3:1 which is less than minimum contrast ratio: 4.5:1.
Expected Result:
The Luminosity ratio of Success Instances "27" numeric value with respect to its background color should be greater than or equal to 4.5:1.
Issue:
Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (color-contrast - https://accessibilityinsights.io/info-examples/web/color-contrast)
Screenshot before fix:

Screenshot after fix:

Checklist