Skip to content

Accessibility Issues #4101

@waako

Description

@waako

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

There are a number of sub-optimal implementations for accessibility, and some misuse of ARIA roles, particularly around navigation (e.g. sidebar) and search.

This causes some major difficulties for keyboard navigation.

Whilst #4006 touches on a few issues, I'd like to build this into a Meta issue to document the existing issue, the challenges they cause and potential directions to ensure improved accessibility.

To that effect, I'll be slowly adding as I go, so this is a WIP bug report.

Expected behaviour

Ability to navigate, use and interact with menu (on narrow screen), search and operate interactive components using keyboard and assistive technology.

Actual behaviour

  • Unable to "toggle" sidebar menu using keyboard.
  • On Safari, focus order goes back to beginning after focus is on search "dialog" making it impossible to tab through rest of page (wide and narrow screens).

Steps to reproduce

Use keyboard to tab through page elements.

Package versions

  • Python: python --version
  • MkDocs: mkdocs --version
  • Material: pip show mkdocs-material | grep -E ^Version

Configuration

site_name: Material for MkDocs
site_url: https://squidfunk.github.io/mkdocs-material/

System information

  • Operating system: macOS
  • Browser: Safari/Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions