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

False positive: 'color-contrast' rule fails for disabled control's label #1731

Closed
iamrafan opened this issue Jul 29, 2019 · 2 comments
Closed
Assignees
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support

Comments

@iamrafan
Copy link
Contributor

Per WCAG 1.4.3 the text that is part of an inactive user interface component do not have contrast requirement.

Incidental: Text or images of text that are part of an inactive user interface component, that are pure decoration, that are not visible to anyone, or that are part of a picture that contains significant other visual content, have no contrast requirement.

Expectation: 'color-contrast' would not fail for labels related to disabled controls

Actual: 'color-contrast' rule fails for a label(using for attribute) of a disabled control

Motivation: Text related to the disabled control is exempt from the contrast requirements

Demo link: https://developer.microsoft.com/en-us/fabric#/controls/web/combobox

image

axe-core version: 3.3.1-canary.ed28298
axe-Coconut version: 3.8.1
@straker
Copy link
Contributor

straker commented Jul 30, 2019

Thanks for reporting the issue. We'll take a look into what's causing the issue.

@straker straker added fix Bug fixes rules Issue or false result from an axe-core rule labels Jul 30, 2019
@straker straker self-assigned this Jul 31, 2019
@chandana7393
Copy link

chandana7393 commented Aug 30, 2019

Tested, working fine on Axe-coconut. Able to view the issue in Axe and Attest.
Axe_disabled_color_contrast
disabled_color_contrast_attest
Tested Environment:
Attest - 2.6.1.24122v
Axe - 3.9.0.24122v
Axe-coconut - 3.9.0.24122v
Chrome - 76.0.3809.132v
Firefox - 68.0.2v
OS - Windows 10 64 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Projects
None yet
Development

No branches or pull requests

4 participants