fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Color Contrast Ratio issue for Link

Open prativen opened this issue 8 years ago • 7 comments

Bug Report

  • Package version(s): 5.38.1
  • Browser and OS versions: all

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (Yes)

Requested priority: (Normal)

Products/sites affected: (VSTS)

Describe the issue:

Link component does not meet the high contrast ratio. Its just below the 4.5:1 requirement. https://contrastchecker.com/ reports failure for #0078D7 foreground against #FFFFFF background for fonts below 18 pts.

prativen avatar Jan 09 '18 04:01 prativen

It actually passes this checker. Note that we build against the AA standard, and not the AAA standard. The AAA standard really is for high contrast themes, and not default configurations. image

betrue-final-final avatar Jan 09 '18 16:01 betrue-final-final

Actually its failing for small font text. see this link. It seems the above link is only checking for 18pt.

https://webaim.org/resources/contrastchecker/ image

Check here also http://www.wyngcontrastchecker.com/

nikhilexe avatar Jan 11 '18 12:01 nikhilexe

This checker is contradicting itself as 4.5:1 passes AA.

betrue-final-final avatar Jan 11 '18 14:01 betrue-final-final

The above checker did check for smaller font text, if you look closer at the screenshot. ![image](https://user-images.githubusercontent.com/20363037/34836019-710d995c-f6ab-11e7-96dc-e10e01bbaddc.png

The other checker also shows 4.5:1 image

betrue-final-final avatar Jan 11 '18 16:01 betrue-final-final

I guess it could be precision issue, in one of the tool its giving 4.49:1, if you just changed one shade the foreground color to #0078D6 then it passed the test both place.

nikhilexe avatar Jan 11 '18 17:01 nikhilexe

We actually had a long conversation about this earlier, involving a number of accessibility experts. It's actually 4.495:1. Our contrast experts stated making change to make it 4.5:1 is imperceptible to the naked eye. This color is the brand color for Outlook and one we use extensively in many of our components. Changing this would have a huge impact on many teams for little to no benefit other than a reading on a tool. Here is the comparison of these two colors, and also directly next to each other.

image

betrue-final-final avatar Jan 11 '18 18:01 betrue-final-final

Thanks @betrue-final-final, given that its a brand color for outlook and used extensively in many components then it doesn't make sense to change it which is not easy to perceive.

nikhilexe avatar Jan 11 '18 18:01 nikhilexe