rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
18.42k stars 1.65k forks source link

`[aria-*]` attributes do not match their roles #2345

Open meator opened 8 months ago

meator commented 8 months ago

Problem

Lighthouse reports the following error:

[aria-*] attributes do not match their roles

Each ARIA role supports a specific subset of aria-* attributes. Mismatching these invalidates the aria-* attributes. Learn how to match ARIA attributes to their roles.

<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar" aria-expanded="false">

Steps

  1. Go to https://pagespeed.web.dev/
  2. Enter a mdBook URL, for example https://rust-lang.github.io/mdBook/

Possible Solution(s)

No response

Notes

Related to #1915

Version

No response