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

[Adaptive Cards - Element Property] - Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds. #9013

Open
vagpt opened this issue Sep 30, 2024 · 0 comments
Labels
A11yCT For CT Test Pass A11ySev2 Accessibility issue with severity 2. This may impact the accessibility score A11yWCAG Accessibility issue that affects compliance Area-Accessibility Bugs around feature accessibility Area-Renderers Area-Website Bug HCL-AdaptiveCards-Web Used by accessibility team for scorecard categorization HCL-E+D Product-AC

Comments

@vagpt
Copy link
Collaborator

vagpt commented Sep 30, 2024

Target Platforms

Other

SDK Version

1.6

Application Name

Adaptive Cards

Problem Description

Test Environment:
URL: https://adaptivecards.io/
OS Version: Dev (OS Build 27695.1000)
Browser Version: Version 130.0.2849.1 (Official build) dev (64-bit)
Tool: Accessibility Insight for Web

Repro steps:

  1. Open the above URL in the edge dev browser.
  2. Navigate to the 'Designer' option and press enter key to activate it.
  3. Navigate to Element Properties. button and press enter key to activate it.
  4. Run the accessibility insight for web tool and observe the issue.

Actual Result:
The contrast between foreground and background colors does not meets WCAG 2 AA minimum contrast ratio thresholds. Currently it is 3.34 which is less than 4.5:1.

Expected Result:
Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds.
It should be equal to or greater than 4.5:1.

Element path:
.selected.acd-tree-item > .acd-tree-item-text > .acd-data-tree-item-additionalText

Snippet:
[Object]

How to fix:
Fix any of the following:
Element has insufficient color contrast of 3.34 (foreground color: #2d7bb7, background color: #bce2ff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1.

User Impact:
It will impact the low vision user if the contrast ratio of text is less than 4.5:1 as they will face difficulties to see the elements properly.

WCAG Reference:
https://www.w3.org/WAI/WCAG21/Understanding/use-of-color

“ Have feedback to share on Bugs ? please tag bug as “A11yRCA” and add your feedback in the comment section”

Screenshots

Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds  under element properties

Luminosity ratio for the Object is 3 241 1 which is less than 4 5 1

Card JSON

NA

Sample Code Language

No response

Sample Code

No response

@vagpt vagpt added Bug Area-Renderers Area-Accessibility Bugs around feature accessibility Area-Website A11ySev2 Accessibility issue with severity 2. This may impact the accessibility score A11yWCAG Accessibility issue that affects compliance HCL-E+D Product-AC HCL-AdaptiveCards-Web Used by accessibility team for scorecard categorization A11yCT For CT Test Pass labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11yCT For CT Test Pass A11ySev2 Accessibility issue with severity 2. This may impact the accessibility score A11yWCAG Accessibility issue that affects compliance Area-Accessibility Bugs around feature accessibility Area-Renderers Area-Website Bug HCL-AdaptiveCards-Web Used by accessibility team for scorecard categorization HCL-E+D Product-AC
Projects
None yet
Development

No branches or pull requests

1 participant