Skip to content

Summary of Axe accessibility issues #1428

Closed
@gabalafou

Description

@gabalafou

If you run the accessibility checks right now:

nox -s a11y

It opens several pages and runs the Axe checker against them to find accessibility issues. There are many test failures, but only several root causes.

This issue groups the failures and links to issues to fix them. Note that some of the issues exist outside this repo (in dependencies).


  • color-contrast - Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds
    Root cause: insufficiently strong color palette for the a11y-light Accessible Pygments theme
    Related GitHub issue:
    a11y-light fails WCAG AA contrast with gray background Quansight-Labs/accessible-pygments#30
    Pages where this shows up:
    • /examples/kitchen-sink/blocks.html (light theme)
    • /examples/pydata.html (light theme)
    • /user_guide/theme-elements.html (light theme)
    • /user_guide/styling.html (light theme)


  • duplicate-id-aria - Ensures every id attribute value used in ARIA and in labels is unique
    This is a site-wide issue so it shows up only on /user_guide/page_toc.html page in the test results.
    Fixed by: Fix duplicate HTML IDs #1425

The following two site-wide issues are both fixed by the same PR:


There are also some color contrast issues that have to do with running Axe core (the accessibility checker) before certain animations (color transitions) finish running on the page. This results in false positive contrast failures. This is tracked in the following issue:


The following violations are site-wide and appear at /user_guide/page-toc.html, which runs Axe against the entire page. These site-wide violations are fixed by #1454:

  • landmark-main-is-top-level - Ensures the main landmark is at top level
  • landmark-no-duplicate-main - Ensures the document has at most one main landmark
  • landmark-unique - Landmarks should have a unique role or role/label/title (i.e. accessible name) combination
  • region - Ensures all page content is contained by landmarks

The following site-wide violation has to do with the PyData Theme logo in the header. The alt text for the logo is PyData Theme, but text that immediately follows the logo icon is also PyData Theme. This causes the screen reader to say it twice. This issue is fixed in #1472 and #1471:

  • image-redundant-alt - Ensure image alternative is not repeated as text

This is an issue in Sphinx Design with link cards:




Metadata

Metadata

Labels

tag: accessibilityIssues related to accessibility issues or efforts

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions