-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Designer] Change icon and error background colors for contrast #4207
Conversation
Fixes VSO #24094745
Hi @paulcam206. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that the tree view icons are for presentation only, there really shouldn't be any accessibility requirement as to their color. That being said I don't see a problem with the updated color.
You haven't included a screenshot of the error pane though, it would helpful.
It's not specific to the color so much as the contrast of that color to the background color. This is an accessibility issue in that proper contrast helps folks with visual impairments (but not complete blindness) successfully interact with our stuff. Indeed, it is in aid of folks without any visual impairments in that it reduces eye strain and increases impact and recognition of text. If the icons weren't in some way helpful, we probably wouldn't have included them in the design
Fair enough -- updating the description... |
I don't want to beat a dead horse, but no, it isn't an accessibility issue. It would be if there was no text next to the icon. The icon might as well not exist in the tree view, it would be just as functional. Plus, I believe you added some code recently to mark the icon with |
Accessibility in this context doesn't mean just people that rely on screenreaders. As you point out, we don't expose these icons to screenreaders because they have text labels next to them. However, the icons can serve to reduce cognitive load for users in that they can skim through the icons to find a particular card element (screenreader users would probably use their screenreader's built-in search function to do the same). Appropriate contrast ratios can help with recognition. |
🎉 Handy links: |
Related Issue
Fixes VSO #24094745
Description
The blue color we use for icons (and the error background) is a bit too light to contrast well with a white background (or white text on the blue color's background in the case of the error banner). Fix is to use a darker blue in CSS.
Before (icons)
After (icons)
Before (error banner)
After (error banner)
How Verified
Microsoft Reviewers: Open in CodeFlow