AC-2490::Contrast insufficient - product image selected state indicat… #3789
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
Contrast insufficient - product image selected state indicator (Product Detail Page)
Reproduction Steps
select "Blouses & Shirts" > select "Susanna Draped Tank" - [NODE][body>div:nth-of-type(1)>:nth-child(1)>:nth-child(3)]
Actual Behavior
When a product image button is selected, the selection indicator does not meet the required contrast ratio of 3:1.
The style is provided by a box-shadow:
box-shadow: 0 0 10px 0 rgb(var(--venia-global-color-teal));
{}venia-global-color-teal: var({-}-venia-global-color-blue-400);
--venia-global-color-blue-400: 61 132 255;
This style results in a sampled hex color against a white background of #B5D0FF, with a contrast ratio of 1.6:1.
When sufficient contrast ratios are not met, users with low vision may have trouble identifying user interface components.
Expected Behavior
Ensure that visual indicators of state provide a contrast ratio of at least 3:1 against the background color. Refer to the Color Contrast Checker Tool for assistance: https://www.levelaccess.com/compliance-resource/color-contrast-checker
Related Issue
Closes https://jira.corp.magento.com/browse/AC-2490.
Verification Steps
Pre-Conditions:
Manual Steps executed:
Login to venia > navigate to product detail page
navigate to serach button and serach any product
observe the Use a color contrast checker to compare foreground and background colors
✖️ Behaviour Before The Fix :
When a product image button is selected, the selection indicator does not meet the required contrast ratio of 3:1.
✔️Behaviour After The Fix: the selection indicator does meet the required contrast ratio of 3:1.
Checklist
Resolved issues: