Skip to content

fix: hide task list checkboxes from assistive technology - #3264

Open
Chocorean wants to merge 1 commit into
rust-lang:mainfrom
Chocorean:dev_must_3225
Open

Chocorean wants to merge 1 commit into
rust-lang:mainfrom
Chocorean:dev_must_3225

Conversation

@Chocorean

Copy link
Copy Markdown
Contributor

Supersedes #3225 (author does not seem to respond), Fixes #3212
was already approved, just needed to squash commits ; all I did was cherry pick and squash

Below original PR description.


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

test: update tasklists snapshot for aria-hidden checkboxes
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Nov 9, 2026

This branch has not been deployed

No deployments
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)

3 participants