equal-access icon indicating copy to clipboard operation
equal-access copied to clipboard

Update color-contrast rules error messages to include detected colors #1666

Open aliunwala opened this issue 3 years ago • 1 comments

Describe what needs to be accomplished

Currently, we do not expose detected colors on the failures, providing detected colors and the failing ratios in error for rules will be very helpful for a developer to fix the issue. We could further tweak the wording as well.

  • [ ] IBMA_Color_Contrast_WCAG2AA”
  • [ ] IBMA_Color_Contrast_WCAG2AA_PV

Why does this need to be accomplished

Related issues or references

Supporting notes and details

image

aliunwala avatar Jun 03 '22 16:06 aliunwala

From triage: We can expose the hex/rgb values here in the rule output.

This is to help the developer know "which background" is causing the color contrast errors. (Especially in the case where there are 3+ colors near each other)

aliunwala avatar Jun 16 '22 20:06 aliunwala