Color contrast accessibility quick fix #43
Merged
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.
For an example of how to fill this template out, see this Pull Request.
Description
This code changes the colors of the Chippy message, the search bar, the purchase urgency legend icons, and the "click here", "add item", and "clear" buttons on the List view to meet color contrast accessibility standards. It retains the overall theme of the original, just with starker contrast that works in both light and dark modes. I did not use all of the recommended colors from the accessibility insights, instead using adjacent colors from Tailwind's library in keeping with our theme.
Related Issue
closes #42
Acceptance Criteria
Type of Changes
Updates
Before
Light Mode
Dark Mode
After
Light Mode
Dark Mode
Testing Steps / QA Criteria
Download the Chrome Accessibility Insights extension. Click the extension and select the "FastPass" option to see if there are any accessibility issues identified. Then go to your computer's system preferences and toggle your preferences to dark/light mode (whichever was not your default), and repeat the test.
Alternatively, to view the color contrast on each individual element, open up your Developer Tools. Use the pointer to click on each element, and under the "Accessibility" heading, observe that the contrast property is listed as 4.5 or above.