Skip to content

Hide task list checkboxes from assistive technology - #3225

Open
mmustafasenoglu wants to merge 2 commits into
rust-lang:mainfrom
mmustafasenoglu:fix/task-list-checkbox-a11y
Open

mmustafasenoglu wants to merge 2 commits into
rust-lang:mainfrom
mmustafasenoglu:fix/task-list-checkbox-a11y

Conversation

@mmustafasenoglu

Copy link
Copy Markdown
Contributor

Fixes #3212

Task list checkboxes render as disabled inputs with no accessible name. Since they are disabled and purely presentational, this marks them aria-hidden so checkers and screen readers skip them.

Changes:

  • crates/mdbook-html/src/html/tree.rs: aria-hidden on TaskListMarker input + regression test

Task list checkboxes are disabled and purely presentational, so mark
them aria-hidden instead of leaving them without an accessible name.

Fixes rust-lang#3212
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task list checkboxes are rendered with no accessible name (WCAG 4.1.2, Level A)

2 participants