Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25856

Make the color-contrast and scrollable-region-focusable WCAG rules fail the build

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 19.0.0-rc-1
    • None
    • Test Framework
    • Unknown
    • N/A
    • N/A

    Description

      Five axe-core rules are still reported as warnings instead of failures by the WCAG validation of the Docker functional tests (FAILS_ON_RULE in WCAGContext): color-contrast, label, link-in-text-block, scrollable-region-focusable and target-size. The goal is to have only failing rules, so that a new accessibility regression breaks the build instead of going unnoticed in the warning reports.

      Two of them no longer report any warning on the XWiki Environment Tests master job, so they can be switched to failing:

      Rule WCAG criterion Warnings on CI Notes
      color-contrast 1.4.3 Contrast (Minimum) 0 in builds #1442 and #1445 The last warnings, 2 per build from #1418 to #1437, were on the BlockNote macro placeholder, fixed by XWIKI-25624.
      scrollable-region-focusable 2.1.1 Keyboard 0 in every retained build, #1417 to #1445 The last warnings were on the PDFExportIT code macro and auto-scaled table pages, which now skip the WCAG validation since XWIKI-20909 was closed as Won't Fix.

      Attachments

        Issue Links

          Activity

            People

              Lucas C Charpentier Lucas
              Lucas C Charpentier Lucas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: