mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

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

Open meator opened this issue 1 year ago • 0 comments

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

meator avatar Mar 28 '24 15:03 meator