Skip to content
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

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

paulcam206
Copy link
Member

@paulcam206 paulcam206 commented Jun 22, 2020

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)

image

After (icons)

image

Before (error banner)

image

After (error banner)

image

How Verified

  • local build, devtools color tooling
Microsoft Reviewers: Open in CodeFlow

@paulcam206 paulcam206 added Area-Accessibility Bugs around feature accessibility AdaptiveCards v1.2.10 labels Jun 22, 2020
@paulcam206 paulcam206 requested a review from dclaux June 22, 2020 23:44
@ghost
Copy link

ghost commented Jun 22, 2020

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.

Copy link
Member

@dclaux dclaux left a 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.

@paulcam206
Copy link
Member Author

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.

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

You haven't included a screenshot of the error pane though, it would helpful.

Fair enough -- updating the description...

@dclaux
Copy link
Member

dclaux commented Jun 23, 2020

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 aria-role: presentation which means it will be skipped by screen readers, further emphasizing the fact that it is not necessary, and really is only eye candy.

@paulcam206
Copy link
Member Author

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 aria-role: presentation which means it will be skipped by screen readers, further emphasizing the fact that it is not necessary, and really is only eye candy.

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.

@paulcam206 paulcam206 merged commit 184ed85 into main Jun 23, 2020
@paulcam206 paulcam206 deleted the paulcam/designer-object-type-contrast branch June 23, 2020 00:53
@shalinijoshi19 shalinijoshi19 added AdaptiveCards v1.2.10 Platform-JavaScript Bugs or features related to the JavaScript renderer and removed AdaptiveCards v1.2.10 labels Jul 6, 2020
@shalinijoshi19 shalinijoshi19 added this to the 20.06 milestone Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Accessibility Bugs around feature accessibility Platform-JavaScript Bugs or features related to the JavaScript renderer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants