8000 Color palette toggle's keyboard operation is confusing · Issue #7003 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Color palette toggle's keyboard operation is confusing #7003

@cmuncharaz

Description

@cmuncharaz

Context

No response

Bug description

The color palette toggle looks like a button, and sighted keyboard users would expect to activate it using the Enter or Space keys. However, the toggle is not responding to those keys. Underneath, this is implemented as a set of radio buttons and is operated using the arrow keys. This is not evident to sighted keyboard users, who might think the "button" is not working.

Related links

Reproduction

9.5.16-color-palette-keyboard-operation.zip

Steps to reproduce

  1. Install Material for MkDocs, create a site with the minimal configuration, set the color palette toggle, serve Material for MkDocs, point your browser to localhost:8000.
  2. Use the Tab key to set the keyboard focus indicator on the color palette toggle.
  3. Hit Enter or Space to activate it.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0