Color contrast test fails on label color for disabled dropdowns.
The issue present on the official office ui fabric website
https://developer.microsoft.com/en-us/fabric#/controls/web/dropdown
Color contrast test fails on label color of disabled dropdown

Here are the details of this bug

The color contrast should not be this low.

Title: WCAG 1.4.3: Elements must have sufficient color contrast (#Dropdown448-label)
Tags: Accessibility, WCAG 1.4.3, color-contrast
Issue: Elements must have sufficient color contrast (color-contrast - https://dequeuniversity.com/rules/axe/3.3/color-contrast?application=msftAI)
Target application: Home - Office UI Fabric - https://developer.microsoft.com/en-us/fabric#/controls/web/dropdown
Element path: #Dropdown448-label
Snippet:
How to fix:
Fix any of the following:
Element has insufficient color contrast of 2.63 (foreground color: #a19f9d, background color: #ffffff, font size: 10.5pt (14px), font weight: bold). Expected contrast ratio of 4.5:1
Environment: Chrome version 78.0.3904.108
====
This accessibility issue was found using Accessibility Insights for Web 2.10.3 (axe-core 3.3.2), a tool that helps find and fix accessibility issues. Get more information & download this tool at http://aka.ms/AccessibilityInsights.
thanks @taparikh for reporting, will look into it
@taparikh , please see responses in this issue #10902
according to accessibility guidelines:
"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."
So I will conclude that this is not an issue according to the guidelines above.
This is not a decoration text. This fails the fast pass accessibility test and hence needs to be fixed/
Can we reopen this issue ?
it is not decoration text, but it is part of an inactive user interface component. @betrue-final-final i know that content inside of a disabled input does not need to meet those guidelines, but is that also true for the label?
Is there a way that we need to mark up a disabled label?
@taparikh sorry i missed your message!
@micahgodbolt thanks for following up here :)
@betrue-final-final is on vacation. @ecraig12345 what's your opinion on this?
@ecraig12345 helped found an old issue
https://github.com/OfficeDev/office-ui-fabric-react/issues/9909
https://github.com/microsoft/accessibility-insights-web/issues/981
this confirms that this is not a bug on the fabric side but rather it's a false negative from the a11y tests.
@taparikh pls help close this issue if this answers you
@xugao This issue is different from the one you have specified. The color of the label of a disabled dropdown is failing the color contrast check
Despite being a different component it's the same root cause.
However, the fast pass of the accessiblity insights tool marks this as failed. Which means that the label (not placeholder) of a disabled component should meet color contrast guidelines?
@taparikh - no, there is no accessibility issue here. this is a test issue. pls read through this bug: https://github.com/microsoft/accessibility-insights-web/issues/981
Thanks for catching that @xugao! Glad we got a resolution here.
making as "not an issue". External usually means the bug is 'caused' by an external tool. In this case there is no bug, it's just a false positive created by an external tool.
Closing this bug as it is a false positive
Most helpful comment
it is not decoration text, but it is part of an inactive user interface component. @betrue-final-final i know that content inside of a disabled input does not need to meet those guidelines, but is that also true for the label?
Is there a way that we need to mark up a disabled label?